local thingy = game.Players.LocalPlayer if thingy.TeamColor == thingy.TeamColor("White") then -- The team colour filter (I called the Lobby) script.Parent.Visible = false -- Makes the GUI invisible else script.Parent.Visible = true -- Makes the GUI visible end
Just compare it directly with the team's color:
if thingy.TeamColor == game.Teams.SomeTeam.TeamColor then
Make sure to change "SomeTeam" to the team's name
local thingy = game.Players.LocalPlayer if thingy.TeamColor == BrickColor.new("White") then -- The team colour filter (I called the Lobby) script.Parent.Visible = false -- Makes the GUI invisible else script.Parent.Visible = true -- Makes the GUI visible end
Try this:
local thingy = game.Players.LocalPlayer if thingy.TeamColor == "White" then -- try this script.Parent.Visible = false else script.Parent.Visible = true end
Also, does this output any errors?
local thingy = game.Players.LocalPlayer --You could try to do "script.Parent.Parent.Parent.Parent" and etc. if thingy.TeamColor == BrickColor.new("White") then -- The team colour filter (I called the Lobby) script.Parent.Visible = false -- Makes the GUI invisible else script.Parent.Visible = true -- Makes the GUI visible end
TeamColor isn't an actual color value like BrickColor or Color3. TeamColor uses BrickColor. You could turn Color3 into BrickColor.
Edit: I don't get why This has -2 votes when there is another person with the exact thing I put excpet he was 2 votes. The logic.