Hello,
I’ve been trying to configure a overhead rank GUI that shows your username and rank in a specific group. I would like the textlabel’s color inside the GUI to change depending on the player’s team. I tried many approaches against this problem, yet I still couldn’t figure it out. I looked up on a few articles and roblox developer hub. The overhead GUI works nice and neat, however the textcolor of the textlabel doesn’t change. I think this might be an issue about server-client connections, but I’m not sure.
Any help would be much appreciated.
(The code wasn’t like this before, I edited it a few times. None of my approaches worked. Note that this is a serverscript located in ServerScriptService)
That did not seem to work, I had an issue before that was related to the thing that you mentioned. However, I think at this case, it’s not the solution.
Try changing the TextColor3 on the information label that you cloned to the player’s character to the color instead of changing the informationlabel parented to the script.
I used if Player.TeamColor = BrickColor.new(“White”) instead, and it did not work. I didn’t use BrickColor.White() because its not really specific enough for my requirements, including the other colors such as Maroon, Toothpaste et cetera.
I changed Color3.new to Color3.fromRGB and the combinations using the BrickColor codes page at Roblox Developer Hub, and it did not seem to work. The textlabel’s color stays as same. I don’t think there’s such difference between Color3.new and Color3.fromRGB, aren’t they 2 ways of using Color3?
The reason why it isn’t working is because you never set the property in the first place. On your variable color, that only gets the value of the property. It does NOT set the property. This is easily fixed by: (step by step)