Is there some way to disable jumping while keeping the mobile jump button visible?

Hi developers,

I’m trying to disable jumping without making the jump button disappear on mobile devices.

I have tried setting the JumpPower to 0.001, but it resulted in my character spamming the jump animation whenever the button is held. Removing the jump animation also resulted in weird behavior.

Is there any way I can accomplish this?

3 Likes

I recommend reading on these two topics as they might solve your issue.

JumpRequest
SetStateEnabled

2 Likes

Just disable the mobile jump button and add a copy of it. You can copy the default mobile jump button by:

  • Going to the Test Tab
  • Click Emulation
  • Near the top of the window select a mobile device
  • Click the playtest button
  • Wait for the game to load
  • Copy the ScreenGui named “TouchGui” from your PlayerGui

Be sure to rename it something different from “TouchGui” or it will completely replace the default mobile UI.

Edit: also, you can disable jumping by following the instructions in this post

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.