Basically, when you click the script, the Part is supossed to Go on a position, after 5 seconds to come back, however when it comes back, the Orientation sets to 0, how can I fix this?
local part = script.Parent
local click = script.Parent.ClickDetector
click.MouseClick:Connect(function(click)
print("I got clicked")
part.Orientation = part.Orientation + CFrame.new(0, 90, 180)
script.Parent.CFrame = CFrame.new(1304.292, 235.142, -665.739)
wait(5)
part.Orientation = part.Orientation + CFrame.new(0, 90, 180)
script.Parent.CFrame = CFrame.new(1284.227, 237.592, -668.21)
end)

6 comments
You can use CFrame.Angle ?
Somehow, it still doesn't work, the orientation sets to 0, 0, 0 >.<
Hold on, let me edit it. I see what you mean now.
Try now, I've edited it.
https://imgur.com/a/j0BJF65 , As always, the part's orientation sets to 0??? this is so weird
Try now.