!Mobile JumpButton stuck!

Please do a phone test in Studio with this place file and click the jump button once:
Touchjump Frozen Repro.rbxl (53.9 KB)
→ This simulates a character despawn + load into a map.

Who is affected?

  • Millions of mobile users may have encountered this issue. Some report it happening frequently in games like Rivals and Obbies that use certain teleport mechanics.

Backstory:

  • This issue has occurred thousands of times in our game “Bake Da Baby.” I fixed it in January by forking the JumpButton module, as I cannot use the default Roblox modules to fix this.
  • A similar issue with “TouchControlsEnabled” was resolved: link to resolved issue.

Expected behavior

I expect the jump button not to freeze. The issue is that TouchJump:EnableButton(enable) isn’t always responsible for making the JumpButton UI invisible.

Adding this line of code at line 221 of the “TouchJump” script should resolve the issue:

self.parentUIFrame.Parent:GetPropertyChangedSignal("Enabled"):Connect(function()
	OnInputEnded()
end)

^^ This simple line of code has never failed in our game. I added an extra debug warning that would have appeared in the “Error Report” if it had.

Sidenote: My forked version also includes a function that triggers OnInputEnded() when the LocalPlayer has .CharacterAdded, but this will most likely be redundant.

A private message is associated with this bug report

3 Likes


^^ Videofile of the Repro place: This situation occurs, for example, if you hold the jump button and then get despawned e.g. Map Voting UI initiated. There are various reasons why the TouchJump GUI could be turned off, such as switching to keyboard or character despawn. The fix I suggested is the simplest solution without tampering with any of the complex mechanics.

This is just an acknowledgment announcement!

We’ve filed a ticket into our internal database for this issue and will start investigating, we will update you when we have further information.

Thanks for flagging!

1 Like