Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.