When they "walk", whats the function?
You would use the Running (Event) function. You can detect if a player is or isn't walking.
For a specific player:
1 | game.Workspace.Player 1. Humanoid.Running:connect( function (speed) |
2 | if speed > 0 then |
3 | --When they're walking. |
4 | else |
5 | --If they aren't. |
6 | end |
7 | end ) |
But if you are going to put it into the players then you would replace game.Workspace.Player1
with:
1 | game.Players.LocalPlayer.Character |
Hope this helps!
its this one http://wiki.roblox.com/index.php?title=API:Class/Humanoid/MoveTo
1 | script.Parent.Humanoid:MoveTo( "Vector position" ) |