Keeping a BodyGryo from glitching out vehicle seats

Hi guys,
So for my gun script, I want to have a BodyGyro to keep the player facing the cursor (Think ShiftLock). I didn’t enable Shiftlock though, because I wanted spring in the camera movement when the mouse moves (a slight damper on the rotating to face the camera.) The only problem is that, when the player enters a vehicle with the weapon selected, the seat weld makes the car jump and face the direction the player was facing when they got in. Somehow I have to disable the gryo before they sit down… but how? :thinking:

Somehow roblox managed to do it when they made the shift lock controller, but I don’t know anything about how they made that so I’d have no idea.

1 Like

You can try using RunService.Stepped to check if the player is sitting, as it fires before physics IIRC

I’m probably incorrect but there’s no harm in trying I guess

Alright I’ll try it - Thanks