I have no idea why I can’t seem totate the part back to his old rotation like this doesn’t work and I can;t find anything on the devforum, can somone please help me!?!
If you just want to revert it back to the original rotation then store the old cframe in a variable and set the new cframe to CFrame.new(currentCFrame.position) * oldCFrame.Angles for example:
local part = script.Parent
local oldCFrame = part.CFrame
-- Example new CFrame
local newCFrame = part.CFrame * CFrame.Angles(200, 200, 200)
part.CFrame = newCFrame
wait(5)
-- Sets new angles by multiplying a new cframe containing the position by the old rotation
part.CFrame = CFrame.new(part.CFrame.Position) * oldCFrame.Rotation
You could also apply the rotation in a different order using the 4th paramemter in fromEulerAngles.
Orientation and CFrame apply angles in different orders