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

2 comments
you used LocalPlayer in a server script. LocalPlayer can only be used in a localscript
You need to Use LocalScript instead of Script. Script is Working on all Clients (Server) LocalScript is working on One Client (Player).