Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Force players to walk to position?

Asked by 9 years ago

I know how to make a player move using Player.Character.Humanoid:MoveTo(Vector3(0,0,0)) but the player can still stop it by just tapping an arrow key or w,s,a or d. Is there any way to FORCE a player to walk somewhere so that they can't interrupt it, I've tried:

repeat
    wait()
    Player.Character.Humanoid:MoveTo(Vector3(0,0,0))
until Player.Character.Torso.Position == Vector3.new(0,0,0) -- I know this is wrong but it's just an example

But that can be really glitchy because the player can still interrupt it a bit and make the walking look strange and sometimes if you don't get the position exact then it will repeat forever and the player wont be able to move. There must be a way to do this because I've seen it done in other games I just can't find out how.

0
The Description about Move(MoveTo): Causes the Humanoid to walk in the given direction until stopped, or interrupted by the player(player's controls) woodengop 1134 — 9y
0
I know I was wondering if there was any other method of doing this but so the player cannot interrupt it. General_Scripter 425 — 9y
0
^ Yes, you need to break the controller service. Perci1 4988 — 9y
0
Thanks, sorry for the late reply. I forgot I had made this post, now I can continue making my game! Thanks TheContinentofEurope, if you post that as an answer I will accept it and vote it up! General_Scripter 425 — 9y

Answer this question