How can one use MoveTo() w/Humanoid and not be interrupted by the player's controls?
Asked by
7 years ago Edited 7 years ago
Eh... I am pretty sure this can be done. If not then I am doomed.
I have tried WalkToPoint()
which essentially does the same thing as MoveTo()
with a humanoid.
So I have tried using both, and they can both be interefered with the player's controls. WASD or Arrow Keys
I also have tried putting the player's WalkSpeed at 0 or a low level, but that disables the player to even walk at all.
Also here is what I have so far:
02 | local WalkTo = script.Parent.Parent.TriggerStop |
04 | script.Parent.Touched:Connect( function (plr) |
05 | if plr.Parent:FindFirstChild( "Humanoid" ) then |
10 | plr.Parent.Humanoid.WalkSpeed = 16 |
11 | plr.Parent.Humanoid:MoveTo(WalkTo.Position) |
Any feedback is helpful!