Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

How do you kill all players when the round ends?

Asked by 8 years ago

I am a beginner at scripting and I need YOUR help! Can you kill all players when the round ends? I tried this:

wait(120)
script.Parent.Parent.Players.GetAllChildren()
-- ??????????????????????????????????????

This is where I get stuck! I need help! Can you do it?

1 answer

Log in to vote
1
Answered by
Nickoakz 231 Moderation Voter
8 years ago

Since this is more like a request, if you can get the list of players that are still alive in game. Here you go..

for _,v in next,alivePlayers do
v:LoadCharacter()
end
Ad

Answer this question