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

how can i make a scirpt that changes the color of a image? (GUI)

i want to make a badge gui that changes ImageColor to random colors.

the script i made:

while true do
	script.Parent.ImageColor3 = Color3.new(Random)
end

1 answer

✓ Accepted answer

I dont know if there is an other way but i just used math.random

while true do
	wait(0.01)
    script.Parent.ImageColor3 = Color3.fromRGB(math.random(1,255),math.random(1,255),math.random(1,255))
end

Also, add a wait time to prevent lag lol

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