I want it so when a player leaves a game it checks to see if a team has no players so it Clones a item. i have done this so far
local players = team:GetPlayers()
game.Players.PlayerRemoving:connect(function(player)
if game.Teams.Slot1.Players == 0 then
game.Lighting.Start:Clone().Parent = game.Workspace
end
end
But i am no good with team

1 comment
There are events for when a player leaves a team and joins the team