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

1 answer

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