MoveTo (Method)/humanoid: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy fixed |
>NXTBoy Undo revision 47637 by SoulStealer9875 (Talk) Did you mean to change the variable type? That name makes no sense at present. |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{Method | <onlyinclude>{{Method | ||
|arguments = [[Vector3]] | |name = MoveTo | ||
|arguments = [[Vector3]] ''location'', [[Part]] ''part'' | |||
|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 = | |object = Humanoid | ||
}}</onlyinclude> | }}</onlyinclude> | ||
{{clear floats}} | |||
{{Example|This [[LocalScript]] will make the [[LocalPlayer]]'s [[Character]] walk to a Part.<pre> | |||
local part = game.Workspace.Part | |||
game.Players.LocalPlayer.Character.Humanoid:MoveTo(part.Position, part) | |||
</pre>}} | |||
[[Category:Methods]] | [[Category:Methods]] |
Latest revision as of 19:58, 18 September 2011
MoveTo( Vector3 location, Part part ) | |
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)