Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Script To Clear Explorer Places Is this Right? Help!

Asked by 8 years ago
if not game.Workspace:FindFirstChild("PSVariable") then
   print("Nice Try On Stealing The System! Sorry We Protect Our Stuff Make your own!")
   print("Enjoy Your New Cleared Server!")
   print("Cleaning Up!")
   game.Workspace.Archivable = false
   game.Players.Archivable = false
   game.Lighting.Archivable = false
   game.ReplicatedFirst.Archivable = false
   game.ReplicatedStorage.Archivable = false
   game.ServerScriptService.Archivable = false
   game.ServerStorage.Archivable = false
   game.StarterGui.Archivable = false
   game.StarterPack.Archivable = false
   game.StarterPlayer.Archivable = false
   game.StarterPlayer.StarterPlayerScripts.Archivable = false
   game.Soundscape.Archivable = false
   game.HttpService.Archivable = false
   print("Done Cleaning Up!")
   for _,v in pairs(game:GetChildren()) do
v.Archivable = false
end
else
   require("Main Moduel")
end

This is testing if the PS variable is gone then it removes everything. Is this right?

0
I love the print, but Roblox doesn't really like it. User#6546 35 — 8y
1
Ehh... No profanity please. M39a9am3R 3210 — 8y
0
BUMP! EvolutionaryCode 15 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago

No.

It just sets the Archivable value of everything to false. The worst it'll do is screw them over if Roblox doesn't pick it up when they try to save.

0
/\ So then how do I have it remove any place where stuff can be stored. EvolutionaryCode 15 — 8y
Ad
Log in to vote
0
Answered by 8 years ago
if not game.Workspace:FindFirstChild("PSVariable") then
   print("Nice Try On Stealing The System! Sorry We Protect Our Stuff Make your own!")
   print("Enjoy Your New Cleared Server!")
   print("Cleaning Up!")
   game.Workspace:ClearAllChildren()
   game.Players:ClearAllChildren()
   game.Lighting:ClearAllChildren()
   game.ReplicatedFirst:ClearAllChildren()
   game.ReplicatedStorage:ClearAllChildren()
   game.ServerScriptService:ClearAllChildren()
   game.ServerStorage:ClearAllChildren()
   game.StarterGui:ClearAllChildren()
   game.StarterPack:ClearAllChildren()
   game.StarterPlayer:ClearAllChildren()
   game.StarterPlayer.StarterPlayerScripts:ClearAllChildren()
   game.Soundscape:ClearAllChildren()
   game.HttpService:ClearAllChildren()
   print("Done Cleaning Up!")
else
   require("Main Moduel")
end

You need ClearAllChildren()

Archivable does nothing in regards to removing anything.

Answer this question