I want to be able to use a for loop to progressively rotate a part using CFrame until it's at the desired orientation, but my knowledge on CFrame is extremely limited. I just simply need to know how to add rotational values to a part's current CFrame.
✓ ANSWER ACCEPTED
How do I add to a CFrame value without resetting it's position?
2 answers
✓ Accepted answer
CFrame.new = game.Workspace.Part.CFrame * CFrame.Angles(1, 0, 0)
This will make part stay in its position and rotate 1 (stud I think)
This oughta do the trick
Let's say the part you want to move is in workspace, and is called timmy
while true do
wait(1) -- Wouldn't want it to crash,would you?
game.Workspace.timmy.CFrame = game.Workspace.timmy.CFrame + CFrame.Angles(1,0,0)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
