Hello So I'm making a game with planes. The planes use a plane tool so my question is that is it possible to make a script that disables the spacebar if the plane tool is equipped? And if you unequipped the tool the spacebar is enabled again. I don't want the player to get out of the seat when they still have the tool equipped. Thank you for your time.
Yes, it is possible,
Set the player's JumpPower to 0 when you don't want them to jump or when player equips tool
And when you want them to jump, set it back to 50.