generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

How to kill all players using a script

Previous Thread :: Next Thread 
BlockzieCartI is not online. BlockzieCartI
Joined: 28 Sep 2009
Total Posts: 812
27 Nov 2011 08:59 AM
Hello.
Does anyone know what the command is to kill all the players in a place?
This was a guess:
Players.FindFirstChild.Humanoid.Health = 0
It didn't work but I wondered if anyone could help me?
Report Abuse
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
27 Nov 2011 09:01 AM
for i,v in pairs(game.Players.GetPlayers)
v.Character.Head:remove() --I think that how you index it...
end
Report Abuse
BlockzieCartI is not online. BlockzieCartI
Joined: 28 Sep 2009
Total Posts: 812
27 Nov 2011 09:02 AM
Thanks, I shall check this
Report Abuse
Lightmaster9 is not online. Lightmaster9
Joined: 14 May 2009
Total Posts: 8659
27 Nov 2011 09:08 AM
for i,v in pairs(game.Players:GetChildren()) do
v.Character.Head:remove()
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image