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

How do I do this?

So, you know how you can make something continuously move, even through blocks by doing this?

local part = script.Parent

while true do
	part.CFrame = part.CFrame * CFrame.new(0,1,0)
		wait(.01)
end

I wanted to know whether or not it was possible to make something keep rotating forever, using the CFrame.Angles. That way it would be rotating inside of a different block forever. If my question doesn't make sense, or it's not possible, just comment!

Thanks for the help!

1 answer

✓ Accepted answer

Yes, of course, and it's almost the same code:

while true do
	wait(.03)
	-- Note that usually wait will not wait for less than .03 seconds
	part.CFrame = part.CFrame * CFrame.Angles(0, 0.1, 0);
	-- Spins around its top
end

1 comment

0

:D

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