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

How to disable the jump button for mobile users?

Asked by 3 years ago

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

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 marine5575 359 — 3y
0
Thank you, but it does disable the buttons i added for mobile, so i will stick with JumpPower 0. munkuush 22 — 3y

1 answer

Log in to vote
0
Answered by
iuclds 720 Moderation Voter
3 years ago
Edited 3 years ago
-- 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.

Ad

Answer this question