Vehicle seat input issue

In my game, I need the plane to shoot with R2 (Xbox). However, whenever I use R2 the plane dips down. How can I make it so that the vehicle seat only moves from input from the thumb stick?

You can use userinputservice:

game:GetService(UserInputService).InputBegan:Connect(function(Input)

      if Input.KeyCode == Enum.KeyCode.idk then -- I dont know what R2 would be in keycode just find it in the drop down menu...

           --code

     end

end)

That wouldn’t work for me, the script that controls the plane is a server script.

Are you using a free model? because you should be able to edit it and know exactly what you are doing if you created the WHOLE plane…

The script takes the steer and torque of the vehicle seat and turns it into a CFrame for body movers to move the plane. The issue is that the vehicle seat takes in input from the thumb stick but also the triggers. I want it to only take the input from the thumb stick or else it will dip down when the player is shooting.

I suggest you get help from somebody else because I have never made an Xbox controller adaptation while making games… I suggest you read this: Vehicle seat