MoveTo (Method)/humanoid: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
fixed code
>SoulStealer9875
not sure but correct me if i'm wrong
Line 1: Line 1:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name = MoveTo
|name = MoveTo
|arguments = [[Vector3]] ''location'', [[Part]] ''part''
|arguments = [[Vector3]] ''location'', [[Part]] ''Instance''
|description = Causes the character of the humanoid to walk to the location.
|description = Causes the character of the humanoid to walk to the location.
|object = Humanoid
|object = Humanoid

Revision as of 19:23, 18 September 2011

MoveTo( Vector3 location, Part Instance )
Returns nil
Description: Causes the character of the humanoid to walk to the location.
Member of: Humanoid


Example
This LocalScript will make the LocalPlayer's Character walk to a Part.
local part = game.Workspace.Part
game.Players.LocalPlayer.Character.Humanoid:MoveTo(part.Position, part)