Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

is it possible to make a rainbow gui cycle script?

Asked by 5 years ago
Edited 5 years ago

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?

0
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. xEiffel 280 — 5y

1 answer

Log in to vote
1
Answered by
SCP774 191
5 years ago
Edited 5 years ago

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.

0
You're not answering his question. User#19524 175 — 5y
Ad

Answer this question