Disabling/Enabling Mobile Jump Button (2023)

Hello. So to put it simply, the CharacterJumpHeight under StarterPlayer is set to “0”, which automatically disables the jump button for mobile users. There is a point in the game where the height is set back to “7.3”, but for mobile users, the button doesn’t reappear.

I have checked various forums on how to go about enabling it again, but all the posts discussed a way that no longer works (that is finding “TouchGui” under “PlayerGui” or something like that). So how could I enable the mobile jump button with a script?

4 Likes

Maybe instead of setting StarterPlayer’s property you should set a Humanoid’s property.

1 Like

Just tried that. It works on PC but the button still does not show up for mobile.

1 Like

Try setting the JumpPower instead. And enable UseJumpPower too.

2 Likes

The button still does not appear.

1 Like

I think that the jump button is in starter gui maybe try finding it someway

1 Like

oh sorry I didnt continue reading

1 Like

maybe try adding a custom jump button?

1 Like

I want to know if finding it is possible first

1 Like

I found this:

maybe you will find it there

1 Like

local jumpDisabled = false

local function onPlayerAdded(player)
    player.CharacterAdded:Connect(function(character)
        local humanoid = character:WaitForChild("Humanoid")
        humanoid:GetPropertyChangedSignal("Jump"):Connect(function()
            if jumpDisabled then
                humanoid:ChangeState(Enum.HumanoidStateType.Physics)
            end
        end)
    end)
end

game.Players.PlayerAdded:Connect(onPlayerAdded)
2 Likes