I am having issues with my weapons

Hello, I am having an issue with my weapons,

I have 4 weapons in my game, Glock, AKM, AWM, SCAR-H
All weapons were working fine, till I updated the game
the AKM and SCAR-H When you equip them, you lean to the right
I copied the Weapons scripts to a baseplate and I didn’t lean.
I need to know what affects my weapons scripts that makes me lean on equipping the weapons
I’d appreciate if you can help!

Edit: When I updated the game I added a First person weapon, but when I found out it breaks my weapons I remove the FP gun and its scripts, but I still lean.

Pictures:
https://gyazo.com/444ecc749bf5785d948fb187a8418d30
https://gyazo.com/d5e9861c54ca5051efd8d41ddc59f212

Are any of the parts of the gun models anchored?

Make sure you are using welds and not anchoring the parts.

there is nothing wrong with the gun tool,
All parts are unanchored and welded, and they work in any other games well.

it leans in the main game only.

you may take all the guns unanchor them then insert a welding script in every gun run the game the guns should be welded so copy them (while the game is running) close the game ,delete all the guns and
past the copyed ones into workspace with deleting the weld script and you should have your weapons welded and not Anchored

I already did that and I made sure its not from the gun welds and anchores.

I have a question if you equip the gun can you move?

Could you have missed out the leaning script? Are there any errors in the output? Did you miss out any script when copying it over to another place?

Yes, I can move but leaned too

I don’t have leaning script and I didn’t change anything in script all I did was just copy & paste, + it worked in the game before but idk what happened.

What’s making the gun lean? It might be a script or animation, or even a Handle that you’ve missed out on.

I found it out! it’s from the crouching script for R6, but how do does it affect the weapon script?

Fair point, R15 has more joints than R6 and is able to bend. R15 also has 15 parts whereas R6 has 6 parts.

You might need to change the game properties in the new place to R6.

1 Like