Color Changing Tag not working

Hi!

The title explains it all, it does not work.

I also want it to be random, how would I do that?

local color = 0
while wait() do
	--??? It won't even work without the random.
		script.Parent.TextColor3 = Color3.new(0.815686, 0.65098, 1)
		wait()
		script.Parent.TextColor3 = Color3.new(1, 1, 1)

end

Thanks!

First, ow my eyes

Second, is this in a LocalScript or ServerScript? The type of script may depend if this is a GuiObject of some sort

it’s in a local script, and those were testing colors. i hate that shade of orange too.

		script.Parent.TextColor3 = Color3.new(0.815686, 0.65098, 1)

better?

Could I see how your Gui setup is made in the Explorer?

Y e s

1 Like

image
this is in a testing dummy

Oh that explains it

Can’t use LocalScripts if they’re parented inside workspace, change it to a Server Script and you should be all set!

1 Like

How would I make it transition?

it’s so hard to keep the ModuleScripts, ServersCRIPTS, and LocalScripts all in my head and to know when to use them!

When you mean by transition, do you mean you want to make it a rainbow color? :thinking:

Yes, I love “ServersCRIPTS”

You’re fine, you’re still learning after all so it’s still a process to get used too

1 Like

Yes, Exactly.

You could just keep changing the Color’s Hue every time the loop is called, while encasing it inside another loop so it keeps repeating (LOOP-CEPTION)

local Speed = 1

while true do
    for Transition = 0, 1, 0.001 * Speed do
		script.Parent.TextColor3 = Color3.fromHSV(Transition, 1, 1)
		wait()
    end
end
1 Like