I want a script that starts a round and then at the end of a round checks who survived and gives them points. But if there is only one player left before the round time limit is up then it just gives them the points. So what I have to do is insert all the players in the round into a table called "PlrsInGame."
intermission = 25
gametime = 180
while true do
wait(intermission)
repeat wait() until #game.Players:GetChildren()>0
playersingame = {}
for i,player in pairs(game.Players:GetChildren()) do
table.insert(playersingame,player)
end
for index,value in pairs(playersingame) do
print(value)
end
wait(gametime)
end
Now how do I remove the player from the table when he dies. Then at the end of the round how do I give points to the survivors, or if there is only one survivor before the end of the round how do I give him points? I have a leaderboard and the "points" are "Gold." Please help me with this? (if it makes any sense.)
