Help with ContextActionService BindAction?
I have been trying to make my game mobile suppeoted by making the player jump high as pc players.
It works on pc when i emulate my device on ipad, but then when i got to my mobile device the buttons dont work as a "nil" error
01 | local contextActionService = game:GetService( "ContextActionService" ) |
02 | local player = game.Players.LocalPlayer |
03 | local char = player.Character |
06 | char.Humanoid.JumpPower = 100 |
07 | char.Humanoid.Jump = true |
08 | char.Humanoid.JumpPower = 50 |
11 | contextActionService:BindAction( "jump" , JumpHigh, true , "j" ) |
12 | contextActionService:SetTitle( "jump" , "Super Jump" ) |