i was wondering if it was possible to make a gui go through all of the colors in the rainbow, but tween service only goes through 2 colors. is there any way this could be possible? if so, what event/function would i use?
COMMUNITY QUESTION
is it possible to make a rainbow gui cycle script?
1 answer
It is incredibly simple. You just need to wrap brickcolor.random() in a variable and return their Color3 value by using .Color.
For example, you have a rainbow script inside of a gui object:
local bcolor = BrickColor.Random() -- Get a random color
script.Parent.TextColor3 = bcolor.Color -- Set the gui object's color3 value to the random brickcolor's color3 value
You can wrap that inside a for loop, while loop, anything. You don't have to manually write the cycle yourself by using this. This works with ANY object with color3 value, not only gui objects.
1 comment
0
You're not answering his question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
What do you mean tween service only goes through 2 colours? When I've used it to make a rainbow gui cycle it worked perfectly.