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:
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?
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:
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
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
wait(0.1)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
I'm guessing the (0, 0.2, 0) value changed the object's rotation to (0, 0.2, 0), correct?
And btw this doesn't do anything to the object...