weapon script fix