I am attempting to disable all jump actions for all platforms using ContextActionService. Besides the space bar, button A, and the jump button on mobile, what are some other jump buttons for platforms?
Instead, you can get rid of jumping altogether by setting the Humanoid’s JumpHeight
to 0.
local player = script.Parent
local humanoid = player.Humanoid
humanoid.JumpHeight = 0
1 Like
A answered a very similar topic to this recently, the best way to do this is to bind the action with the corresponding name to a empty function ()
For example, to remove move forward action, you can do
game:GetService("ContextActionService"):BindAction("moveForwardAction", function (), false)
you can replace the empty function with the function you want to happen instead
This won’t work for the idea I am attempting to create. The only possibility would be to utilize context action service.
And how would you rebind the function to allow them to move again?
Apologies for the late response, in this case you would do
The action name can be anything you want, so you can unbind it later