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

How I get when the player moves?

Asked by
Adryin 120
10 years ago

When they "walk", whats the function?

2 answers

Log in to vote
1
Answered by
TofuBytes 500 Moderation Voter
10 years ago

You would use the Running (Event) function. You can detect if a player is or isn't walking.

For a specific player:

game.Workspace.Player1.Humanoid.Running:connect(function(speed)
    if speed > 0 then
    --When they're walking.
    else
    --If they aren't.
    end
end)

But if you are going to put it into the players then you would replace game.Workspace.Player1 with:

game.Players.LocalPlayer.Character

Hope this helps!

Ad
Log in to vote
-1
Answered by 10 years ago

its this one http://wiki.roblox.com/index.php?title=API:Class/Humanoid/MoveTo

script.Parent.Humanoid:MoveTo("Vector position")
0
No I need the function... Adryin 120 — 10y

Answer this question