Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Wait(Delay(1))
- local AllPlayers = worldInfo:GetAllPlayersInRange(worldInfo,100000)
- for i = 1, #AllPlayers, 1 do
- AllPlayers[i]:DropDead(0,0,0)
- end
- or
- Wait(Delay(1))
- local AllPlayers = worldInfo:GetAllPlayersInRange(worldInfo,100000)
- for _,player in pairs(AllPlayers) do
- player:DropDead(0,0,0)
- end
- Note: the 'pairs' function is used to iterate over the key-value pairs of a table. Here '_' is used as a dummy variable for a key (number) which I don't need, and the value is put into 'player'.
Add Comment
Please, Sign In to add comment