I want to achieve a double jump bar that works on mobile.
The issue is it does not work on mobile.
I have checked and it only works when you press the space bar.
userInput.InputBegan:Connect(function(input)
local input = input.KeyCode
if input == Enum.KeyCode.Space then
jumpEvent:Fire()
end
end)
Do you mean:
I want to achieve a double jump bar that works on mobile.
The issue is it does not work on mobile.
I have checked and it only works when you press the space bar.
There’s a script on that page that shows you how to detect if someone is jumping whether they are on keyboard or touchscreen.
Incorporate that instead of the code you are using. You will have to tweak it, but it should all be there.