its suppose to hide a frame if a player is in team New yeller but it doesn't work please help
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
if script.Parent.Parent.TeamColor == BrickColor.new("New yeller") then
wait(0.05)
script.Parent.ScreenGui.Scores.Main.Visible = false
end
