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?
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)