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 make a rainbow flashing TextLabel Backround?

I know, this is the saddest attempt on earth

while wait(0.5) do
local text = script.Parent
text.BackgroundColor3 = Random

1 comment

0

i know i forgot to add the end i just added it and still didnt workkk

2 answers

✓ Accepted answer

I don't make random background colors much but I think I know how

local colors = {
	Color3.fromRGB(0, 100, 200), -- Blue
	Color3.fromRGB(200, 0, 0), -- Red
	Color3.fromRGB(0, 200, 0), -- Green
}

while true do
	script.Parent.Board.Board.BackgroundColor3 = colors[math.random(1, #colors)]
	wait(0.5)
end
local speed = 1/1600 -- Increasing 1600 will slow the transition down, lowering 1600 will speed it up.
while true do
	for hue=0, 1, speed do 
		script.Parent.BackgroundColor3 = Color3.fromHSV(hue, 1, 1) -- Color3.fromHSV takes the hue, saturation, and value as arguments, and converts them to a Color3. You can use this to loop through it.
		wait()
	end
end

1 comment

0

sadly cant accept 2 answers

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