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

How to make a Vector3 moved part go back where it was?

Asked by 8 years ago
Imp = script.Parent
Okm8 = game.Workspace:WaitForChild("Okm8")

Imp.ClickDetector.MouseClick:connect(function()


Imp.ClickDetector:Destroy()


for i=-1329.9,-1325,.1 do
game.Workspace.Okm8:MoveTo(Vector3.new(i,.5,237))
wait''

end
end)

Imp.ClickDetector.MouseClick:connect(function()
wait(2)

Instance.new("ClickDetector", Imp)
end)
0
What is this User#11440 120 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

CFrame

When you move a part by setting its Position, it moves to the closest position it can without clipping through parts. To avoid this, set the CFrame.


But that's not what I meant!
I'm the queen of the forums, and because you didn't provide description I have decided that is what you meant. Provide description next time.

Ad

Answer this question