I want to be able to use the :WalkTo feature, though If I change the speed to 0 it won't allow me to do this. Is there a way to disable the movement for the keys only. Please help.
✓ ANSWER ACCEPTED
Is there a way to disable the movement of a player without changing their speed to 0?
1 answer
✓ Accepted answer
Hi Trxx_x,
It's very easy to stop the player from controlling the character by simply disabling the Control Script which is under PlayerScripts. All you need to do is make that script disabled and the character won't be able to move. Let's say you're in the game and have the command bar at the bottom, this is how you would disable the moving of the character:
game.Players.KingLoneCat.PlayerScripts.ControlScript.Disabled = true;
##Well, I hope I helped and have a wonderful day.
####(P.S. :WalkTo() isn't a method, I think the method is :MoveTo())
Thanks,
Best regards,
~~ KingLoneCat
2 comments
0
^Ohh ty im going to try this and see if it works :)
0
It will. I tried it.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
you can control the user to move there then make them unable to move
You could try anchoring the torso?
^ Not really, because while they are walking there the player would be able to move and stop the process.
^^ Didn't work
make them unable to move by setting speed to 0 then use a script that controls the user to the position you want.you can do this by teleporting them a unit at a time until they at the position (it will look like they walking towards the object) then make them able t walk again