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 Continually CFrame Rotate A Block Without It Moving To 0,0,0?

I've tried a lot and this just won't work.

while true do 

		brick.CFrame = CFrame.Angles(math.rad(var), math.rad(var), math.rad(var))
		var = var + 1
		wait(1)
		brick.CFrame = CFrame.new(Vector3.new(-59, 14.59, -101))

end

1 comment

0

It begs the question: Where did you copy this from?

1 answer

You can do this by combining CFrames with the * operator. This example will take the original CFrame of the brick and rotate it a little every second.

while true do
     brick.CFrame = brick.CFrame * CFrame.Angles(0,0.1,0)
     wait(1)
end

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