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

How do you make a rotating script?

I'm good at JavaScripting, so I thought I was good at this. But I just figured out it's VERY different! There are some new terms. Can someone make a script that can rotate a model automatically so I can have spinning cogs?

1 answer

while wait() do
	part.CFrame = part.CFrame * CFrame.Angles(0, math.rad(5), 0)
end

That will rotate the part 5 degrees on the relative Y axis every 1/ 30 of a second.

1 comment

0

I just realized you said model. That will only rotate a single part. :P

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