Weapon Possition Move On Sprint

Hi Guys!!! Haven’t been on Answers for a while since my computer pooped itself lmao… I’m trying to figure out to create a script for run position… like… if i press the shift key and i start sprinting i want my weapon to drop… like these pics.

Normal:

How i want it to be when i sprint:

any info will be appreciated on this matter. thank you :slight_smile:

There’s a number of ways to do this, as with many simpler mechanics/systems people usually ask for help with on here (not that there’s anything wrong with that just… be prepared for a slew of options :P).

  1. Use an animation. Simple as that. Make the animation, and make it play when you sprint.
  2. Manually rotate the gun, over time. Quaternion.slerp is pretty good for this. You may also need Vector3.Lerp.
  3. Rotating/transforming with Time.deltaTime (the amount of time between the last frame update and this one) multiplied by some number is another way to manage doing something “over time,” so I would suggest using it alongside a rotation/translation call.

Off the top of my head, those three would be the most practical. If you’ve got any specific questions on them, check the documentation links, or drop a comment, and I’ll try to answer them.