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

How to make a block rotate forever?

I want to make a block rotate forever. The RotatingSign is the model so I don't lose track of things.

local r = game.Workspace.RotatingSign.Part
repeat
	wait()
	r = r + 0.1
until r == 9999999999999999999 

1 comment

0

XD I totally forgot about the rotation part in the local...

1 answer

✓ Accepted answer

To me, it looks like you want a brick to rotate on the Y axis. In your first line of code, why are you receiving a part? Don't you need the rotation? In your repeat loop, part is an instance, not a number value.

local r = Workspace.RotatingSign.Part.Rotation -- Get the rotation of the brick instead of the brick
while wait() do -- The loop
r = r + Vector3.new(0,0.1,0) -- Making the brick rotate on the Y axis
end

I believe this is what you are looking for.

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