Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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)

1 comment

0

What is this

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.