I need to be able to disable all movement except for jumping temporarily. I’ve tried disabling all controls and then detecting a jump request, but that does not work. Manually disabling all movement except jumping also could work, but I don’t know how to re-enable them properly yet.
You could set the Humanoid’s WalkSpeed to 0, or use ContextActionService to override the controls of player movement.
1 Like
Sorry for the late reply but I just realized I need the server to be able to move the player, so setting walkspeed won’t do. I can get ContextActionService working with computer; how does it work on mobile?
In ContextActionService:BindAction()
, the third parameter can allow a mobile button to be enabled. Then, you can use ContextActionService:SetPosition()
and ContextActionService:SetImage()
to position and label the action.
If you unbind the action, you have to set the position and image again when you binded it.