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: Remove EVERYTHING

Previous Thread :: Next Thread 
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
15 Jul 2012 06:32 PM
Is there a way to may a script that literally just completely removes everything? If so, how?

-Nick
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
15 Jul 2012 06:32 PM
Workspace:ClearAllChildren()

Now we have coffee.
Report Abuse
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
15 Jul 2012 06:36 PM
I mean like, EVERYTHING.

-Nick
Report Abuse
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
15 Jul 2012 06:36 PM
By the way, I tried the game.Workspace:ClearAllChildren() but not everything in the Workspace was deleted...

-Nick
Report Abuse
Techwiz19 is not online. Techwiz19
Joined: 30 Jan 2011
Total Posts: 462
15 Jul 2012 06:37 PM
Go to the configuration page of your place and click reset and choose the terrain. Then delete the terrain. Save.
Report Abuse
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
15 Jul 2012 06:38 PM
...

While a server is running, a script removes everything in a game.

Not resetting the place...

-Nick
Report Abuse
OwneD1991 is not online. OwneD1991
Joined: 16 Oct 2009
Total Posts: 12623
15 Jul 2012 06:39 PM
"While a server is running"

sounds like you are using this for exploiting....
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
15 Jul 2012 06:39 PM
you can't remove everything.....
you can remove everything in workspace except for camera and terrain.
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
15 Jul 2012 06:41 PM
for i,v in pairs(workspace:GetChildren()) do
v:Destroy()
end
Report Abuse
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
15 Jul 2012 06:45 PM
I'm not, I'm trying to create a server shutdown script.

-Nick
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
15 Jul 2012 06:48 PM
If you mean all parts, you can do:

for i,v in pairs(workspace:GetChildren()) do
if v:IsA("Part") then
v:Destroy()
end
end
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
15 Jul 2012 06:49 PM
You can crash a server by this or something similar.

game.Players.YOURNAME = workspace

and then you become the workspace, and leave.
Report Abuse
malachi11 is not online. malachi11
Joined: 07 May 2008
Total Posts: 2420
15 Jul 2012 06:52 PM
workspace:ClearAllChildren()
workspace.Terrain:Clear()


:P
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
15 Jul 2012 06:53 PM
He wants to shut down the server.
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