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

Change frame color based on players team?

Asked by 4 years ago
Edited 4 years ago

Hello there, i want to make a team color, basically when a player loads in the inventory color will change to the teams color. I tried everything, but nothing works. Whoever can help me please respond. Thanks in advance.

1 answer

Log in to vote
0
Answered by 4 years ago

Try something like this:

Players = game:GetService("Players")
Player = Players.LocalPlayer

Frame = game.StarterGui.ScreenGui.Frame --Change to whatever GuiObject you want to change the color of

local brickColor = Player.TeamColor
local color = Color3.new(brickColour.r, brickColour.g, brickColour.b)
Frame.BackgroundColor3 = color

Hope this helps!

Ad

Answer this question