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

Is there anythig wrong with this script?

Well my studio wasn't acting right and figured I could ask on here and blah blah blah. Well I am testing this script on here. The objective of this script is to make a loop of a disco ball. Here it is :P

game.Workspace.Brick.Color  = Vector3value(255,255,255)
While true do
game.Workspace.Brick.Color = Vector3value(0,0,255)
Wait(0.5)
game.Workspace.Brick.Color = Vector3value(0,255,0)
end
game.Workspace.Brick.Color = Vector3value(255,255,255)

Well I think this is good. But please comment if something is wrong. Twoface

1 answer

Close,

game.Workspace.Brick.BrickColor = BrickColor.new(Color3.new(255, 255, 255))
	wait(0.5)
	game.Workspace.Brick.BrickColor = BrickColor.new(Color3.new(0, 0, 255))
	wait(0.5)
	game.Workspace.Brick.BrickColor = BrickColor.new(Color3.new(0, 255, 0))
end
game.Workspace.Brick.BrickColor = BrickColor.new(Color3.new(255, 255, 255)) --this line will never run because of the infinite loop.

1 comment

0

Thanks that's one way to do it. But I found out I can use pointlight. Your meathld

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