Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is it possible to make a script inside a tool that disables the space bar?

Asked by 5 years ago
Edited 5 years ago

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.

1 answer

Log in to vote
1
Answered by 5 years ago

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.

Ad

Answer this question