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
 

Re: how to remove all people from game

Previous Thread :: Next Thread 
HesitantCoolgirl536 is not online. HesitantCoolgirl536
Joined: 13 May 2012
Total Posts: 157
19 Apr 2014 08:35 AM
:s game.Players.AllCHildren??:Destroy()
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
19 Apr 2014 08:36 AM
http://wiki.roblox.com/index.php?title=ClearAllChildren_(Method)
game.Players:ClearAllChildren()

for i,v in pairs(game.Players:GetChildren()) do
v:Kick()
end
Report Abuse
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
19 Apr 2014 08:36 AM
@lamp

Thanks for taking what I was going to post..
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
19 Apr 2014 08:37 AM
:s game.Players:ClearAllChildren()
:s for i,v in pairs(game.Players:GetChildren()) do v:Kick() end
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
19 Apr 2014 08:38 AM
lol lamp posted exactly what I thought.
Report Abuse
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
19 Apr 2014 08:38 AM
":s game.Players:ClearAllChildren()"

e_e don't use this
Report Abuse
HesitantCoolgirl536 is not online. HesitantCoolgirl536
Joined: 13 May 2012
Total Posts: 157
20 Apr 2014 04:40 PM
I might....





...................
Report Abuse
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
20 Apr 2014 04:49 PM
Use this..
:s for i,v in pairs(game.Players:GetChildren()) do v:Kick() end
Report Abuse
Kloiz is not online. Kloiz
Joined: 29 Jan 2010
Total Posts: 378
20 Apr 2014 04:52 PM
Kohls admin blocks that script.
Either that, or you're not set to be an owner in the Kohls admin script.
Report Abuse
Kloiz is not online. Kloiz
Joined: 29 Jan 2010
Total Posts: 378
20 Apr 2014 04:53 PM
(edit)
Only owners can do that.
I'm not sure about just normal admins.
Report Abuse
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
20 Apr 2014 04:55 PM
:s for i,v in pairs(game.Players:GetPlayers()) do v:Kick() end


It's different, so it might work.
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
20 Apr 2014 04:59 PM
OOOOOOOOOOOORRRRRRR Do a shutdown in your server. Harder but more pro style xD


-Dex
Report Abuse
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
20 Apr 2014 05:00 PM
":Shutdown", or what ever, doesn't work anymore, I think.. Anyway, it crashes everyone, not disconnecting them.. e_e It's horrid.
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