MoveTo (Function): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer No edit summary |
>Anaminus No edit summary |
||
Line 4: | Line 4: | ||
|returns = n/a | |returns = n/a | ||
|description = Moves the object and all children to the destination | |description = Moves the object and all children to the destination | ||
|object = [[RBX.Lua.Model|Model]] | |object = [[RBX.Lua.Model (Object)|Model]], [[RBX.Lua.Workspace (Service)|Workspace]] | ||
|}} | |||
---- | |||
There is also a separate ''MoveTo'' function exclusively for the [[RBX.Lua.Humanoid (Object)|Humanoid]] object. | |||
{{Function| | |||
name = MoveTo | |||
|arguments = [[Vector3]] ''location'', [[Instance]] ''part'' | |||
|returns = n/a | |||
|description = Causes the character of the humanoid to the location <!-- I don't know why a Part is needed --> | |||
|object = [[RBX.Lua.Humanoid (Object)|Humanoid]] | |||
|}} | |}} |