Purpose: to make a script that will read a players team color, and then if there color is red or blue it will choose what color to make the scripts frame background color. Unfortunately my attempt failed. If you could help me out that would be awesome and thanks for reading! Code:
if workspace.Gamestart == true then
local plrs = game:GetService("Players")
AllPlayers = {plrs}
BlueTeam = AllPlayers.Team("Bright blue team")
RedTeam = AllPlayers.Team("Bright red team")
if AllPlayers.LocalPlayer == RedTeam then
local BackGround = script.Parent.BackgroundColor3
BackGround = script.Parent.BackgroundColor3.new(202, 1, 1)
if AllPlayers.LocalPlayer == BlueTeam then
local BackGround = script.Parent.BackgroundColor3
BackGround = script.Parent.BackgroundColor3.new(30, 53, 202)
end
end
end
end

1 comment
Thanks!