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

How to disable the jump button for mobile users?

I am currently making mobile support for my game and ive encountered the issue that the jump button isnt removed despite me disabling controls to the player module. I want the mobile buttons to be where the jump button shouldve been but the jump button isnt removed

3 comments

0

Here is a thread about a clean way to disable the jump button, or, delete it entirely. https://devforum.roblox.com/t/clean-disable-on-mobile-jump/405443

0

Thank you, but it does disable the buttons i added for mobile, so i will stick with JumpPower 0.

1 answer

✓ Accepted answer
-- This single line of code will prevent people from jumping.

Humanoid.JumpPower = 0

It works but I wouldn't say its the best way to disable jumping. Setting the jumppower to 0 also removes the jump button for mobile users.

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