I want to make a part move for Z+0.001. The part will start at the starting position and when it reaches the end position then it will be teleported back to starting position. I tried everything but I can't make it work. Please help
✓ ANSWER ACCEPTED
Can you help me to with script that will move part and teleport it back to his original position?
1 answer
✓ Accepted answer
You should do something like this
local startCFrame = part.CFrame
Then change its CFrame in for loop
part.CFrame = part.CFrame + Vector3.new(0,0,1)
And when loop ends do
part.CFrame = startCFrame
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thx