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.
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
1 | while true do |
2 | wait( 1 ) -- Wouldn't want it to crash,would you? |
3 | game.Workspace.timmy.CFrame = game.Workspace.timmy.CFrame + CFrame.Angles( 1 , 0 , 0 ) |
4 | end |