Hi everyone first of all i made a GUI where you can choose ur loadout but i dont want the choosing team to have it so i made this prototype:
local Player = game.Players.LocalPlayer local TB = game.StarterGui.ScreenGui.Menu TB.Visible = false if game.Player.TeamColor == BrickColor.new('Really blue') then TB.Visible = true end
But even tho im in the really red team the button doesnt show up how could i fix this? I obviously made this inside a script and not a localscript
"Player" is not a child, property, function, or event of game. I think you were trying to use your Player variable but just messed up.
Children of StarterGui is actually not what a player sees on their screen. StarterGui's children get cloned and parented under the newly joined player's PlayerGui, a special instance that actually shows what the player is seeing on their screen currently. Replace the TB variable to Player.PlayerGui.ScreenGui.Menu
.