Overhead GUI - The color of textlabel doesn't change

Why are you using decimals tho? You can just go to the BrickColor Codes page and get the RGB code from there, then you can use, as I said, Color3.fromRGB(R,G,B) to set the TextColor3.

Yeah, I also did that but the thing is both gave me the same result. It’s easier to just use Color3.fromRGB but it gives me the same result as if I were using Color3.new, both are not working.

Hmm, I’m out right now so I will be able to create a code to help you in a few hours. Good luck meanwhile.

Alright, thank you for assisting me through this issue.

1 Like

This may be a dumb try but since you included a string on the color variable, you can remove the “TextColor3” and replace the if statements that turn the textcolor3 to the team color like “color.TextColor3 = Color3.new(n, n, n)”

Also, i recommend you use RGB since it’s simple but easy for some stuff.

Wait wait, why are you changing the color inside the script? You wrote local color = script.OverheadGui.InformationLabel.TextColor3 instead of local color = InformationLabel.TextColor3.

You are changing the textcolor3 of the overhead template inside the script instead of the cloned gui, this is the bug.

@MrAz18485

I wrote that when I made up my post, and that didn’t really work. People suggested me to write down the directory of InformationLabel then change the textcolor manually for every if else statement, and that did not work either.

When you tested it, what did you see only with the script before you asked for help?

Like the script you posted on the top.

Edit: Also, what is the information label’s text color in studio?

Well, at output console, there was simply no errors about this script. The textcolor of the label is 38, 38, 38.

I meant that if you go in play test mode, then look at your overhead gui above the head, what do you see?

Well, it shows up my rank and name, which is good (Name - Rank). However, the text is written as black and not as the teamcolor of the team that I’m in.

Here is the problem.

You are changing the Original GUI color instead of the Cloned GUI color.

Do this instead:

local InformationLabel = Character.Head:WaitForChild("GUI NAME")

So that means, if inside the console is no errors, but nothing would change and it’s still the same color, that means only one thing, nothing in the script is broken but the type of color function yo used, i don’t use Color3.()much, but if you use Color3.fromRGB() and change some numbers in it, it could probably work.

I saw some posts where some person said to use color3.fromRGB more than color3.new since it’s more stable and easier, i think you should try it.

My bad if i don’t get something right but isn’t there something in the script dissimilar to that but the same? image

Yes, but it is good practice (and sometimes works) to define the Already-Cloned instance as a different variable.

i gtg get my bloodwork done. I’ll be inactive for a bit. Sorry lol

1 Like

Yeah, kind of. It isn’t really a script made by me, my client is using this script.

After doing changes that Discgolftaco231 said, now it only shows up something like “Text”. I guess, I’ll just remove this stupid script and make my own since I strongly believe that this script itself is just a pile of useless code.

Wait, hold on…

image

There is no such color as “Bright Green”, only “Bright green”, if RNG failed you that might be the problem, since you’re in the team color “Bright green” but in this code, the if statement thinks your trying to find “Bright Green”, but the color is actually named “Bright green” it wouldn’t then change the color of the text label 3 since it thinks that’s still not the color it’s trying to find, same goes for “Really Black” since it’s supposed to be “Really black”, too.

@MrAz18485

After doing the changes that you mentioned, it still seems to be not working. I guess I’ll just remove this script and code my own. I strongly believe that this script is just programmed awfully. Thanks to everyone who helped me, I learned a lot.

Okay, good luck reprogramming it.

Also, you should use Color3.fromRGB(), it’s a lot simpler and easier.

1 Like