Im making this game in which you're on a shrinking baseplate, and you're trying to knock everyone off of it, and be the last one standing.
In this game I have 2 teams, and the one I'm focusing on is called "Player"
So, when one person is left on the team, how do I award them the win?
game.Teams.Players (Not even sure if Im doing this right)
game.Teams.Players.PlayerRemoved:Connect(function(plr) local playerCount = #game.Teams.Players:GetPlayers() if playerCount == 1 then local winner = game.Teams.Players:GetPlayers() for i, v in pairs(winner) do v.leaderstats.win.Value = v.leaderstats.win.Value + 1 end end end)
Might be a bit scrappy! Hope this helps!