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

Can you help me to with script that will move part and teleport it back to his original position?

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

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

1 comment

0

Thx

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