Here's the code:
Code:
for k, v in pairs( player.GetAll() ) do
v:KillSilent()
end
Another example, this code will kill everyone except described player namesthis time:
Code:
local killless = {}
-- Each line for each player you don't want to silently kill
killless["full player name here"] = true
for k, v in pairs( player.GetAll() ) do
-- Check if this player is on our non-killing list.
-- If it is - then pass this loop
if killless[v:Name()] == true then continue end
-- Else - kill the player
v:KillSilent()
end