I want to change the rotation of a part but I don't know how to format it in a statement in a script. I tried this:
1 | script.Parent.Rotation = CFrame.new( 0 , 0 , 0 ) |
but of course it doesn't work, so how do I change the rotation of an object?
This one is better. Try it
1 | while true do |
2 | script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ( 0 , 0.2 , 0 ) |
3 | wait( 0.1 ) |
4 | end |