Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I change the rotation of a part?

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?

1 answer

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

2 comments

0

I'm guessing the (0, 0.2, 0) value changed the object's rotation to (0, 0.2, 0), correct?

0

And btw this doesn't do anything to the object...

This discussion is preserved as it was. New answers, comments, and votes are closed.