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)
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)