|
| 06 Aug 2016 03:37 PM |
I'm trying to make a script where if all players die then the game resets. This works for only one player, however when theirs two only one needs to reset for the game to end. Please help! Thanks
local plrs = {} for i,v in pairs(game.Players:GetPlayers()) do plrs[v.Name] = v local dieded dieded = v.Character.Humanoid.Died:connect(function() plrs[v.Name] = nil dieded:disconnect() if #plrs == 0 then game.Workspace.Map.EndGame.Value = true end end) end
|
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Aug 2016 04:13 PM |
I've tried changing things, nothing seems to work
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|