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

How would I use :MoveTo ?

Asked by 9 years ago

I know CFraming Is more Efficient but I would to know how to use the MoveTo Method I found this on the wiki but I dont really understand how to use it! I would consider using CFraming But I dont know how I would move the postition of a part to a players torso! Please Help! :D (Note: I dont want a request I Just would Like to know how to use it! :D)

2 answers

Log in to vote
0
Answered by 9 years ago

:MoveTo() moved the part that is operated on to the coordinates or position. For example, using game.Workspace.Part:MoveTo(0,0,0) would move the Part in the workspace to the coordinates (0,0,0).

It is often used to move Players to certain positions by using :MoveTo on their Torsos, although CFraming is more efficient.

0
so How Would I get it to move to the toros? Timster111 25 — 9y
0
Simply use :MoveTo() on a Player's torso, but provide Coordinates inside of the parentheses. SlickPwner 534 — 9y
0
But the players torso will move Timster111 25 — 9y
0
No, moving a player's Torso moves their entire body with it, because they are connected to it. SlickPwner 534 — 9y
Ad
Log in to vote
-1
Answered by 9 years ago

Would this work @SlickPwner I have a script that clones the "ClickDetector" and the "Script" the part forms but its not at the torso Position....

Torso = script.Parent
script.Parent.ClickDetector.MouseClick:connect(function(char)
local cloned3 = game.ServerStorage.Part:Clone() 
cloned3.Parent = script.Parent.Parent.Torso.Parent
script.Parent.Anchored = true
script.Parent.Part:MoveTo(Torso)
wait(3)
cloned3:Remove()
script.Parent.Anchored = false

end)

Answer this question