Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I disable character movement?

I need to disable character movement, but I can't set Jump Power to 0 and walk speed to 0 because I need to use Humanoid.WalkToPosition to move the character.

1 comment

0

anchor the player and then animate it and again unanchor the player

3 answers

This is a Local script.

game.Players.LocalPlayer.PlayerScripts.ControlScript.Disabled = true

Try changing the walkspeed to 0.001

2 comments

0

The movement animation still plays, and the player can still move. This would also affect the WalkToPosition()

0

but you can still move............

You should just be able to anchor the charachter whilst you aren't needing to walk it. Note this will disable idle anims. I think there's a way to disable user input but I'm not going to search the wiki for it.

1 comment

0

Disabling the ControlScript works to stop movement as well

This discussion is preserved as it was. New answers, comments, and votes are closed.