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

How Disable Space Key ?

Hello, I'm doing a 2D game in roblox, I am using this tutorial as a base : http://wiki.roblox.com/index.php?title=Making_a_2D_Platformer

To not let the character move from unnecessary way, the letter "W" serves as jump, and "A"and "D" to move as you planned in the tutorial, longer use the Space key still works to jump, how do I remove its function.

2 answers

✓ Accepted answer

Well, in scripting terms, you cant disable a key or something like that. But if you follow the tutorial correctly, you shouldn't be jumping when you press space.

I'm not sure you can really disable the space key, but I've figured out how to make it seem like you can't jump.

I learned this yesterday, funny enough.

Using the humanoid's JumpPower property, you can set it to 0 so it's simulating no jumping.

Hope this works out for you!

1 comment

0

but I still want to jump when you press the W key

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