So this only works 1 time. And that is when a player joins but I want to make it so that when a player changes his/hers team to the teamcolor "Earth green" with a admin then this script should be activated
game.Players.PlayerAdded:Connect(function(player) player.Changed:Connect(function(property) if property == "TeamColor" then if player.TeamColor == BrickColor.new("Earth green") then player.PlayerGui:WaitForChild("ScreenGui").Spawn.Disable.Visible = true end end end) end)
This is a server script. I may suck at explaining but I atleast tried