Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Plrs = game:GetService("Players")
- local Light = game:GetService("Lighting")
- function Clear(Obj)
- if #Obj:GetChildren() >= 1 and Obj.ClassName ~= "PlayerGui" then
- for _,v in pairs(Obj:GetChildren()) do
- ypcall(function()
- Clear(v)
- end)
- end
- end
- if Obj.ClassName == "Script" or Obj.ClassName == "LocalScript" then
- Obj.Disabled = true
- Obj:Destroy()
- elseif Obj.ClassName == "Sound" then
- Obj:Stop()
- Obj:Destroy()
- elseif Obj.ClassName ~= "Player" and Obj.ClassName ~= "Backpack" and Obj.ClassName ~= "PlayerGui" and Obj.ClassName ~= "StarterGear" and Obj.ClassName ~= "HealthGUI" then
- Obj:Destroy()
- end
- end
- function Clean()
- Light.GlobalShadows = true
- Light.TimeOfDay = "14:00:00"
- Light.Brightness = 0
- Light.ShadowColor = Color3.new(0.705882, 0.705882, 0.72549)
- Light.Ambient = Color3.new(1, 1, 1)
- Light.ColorShift_Top = Color3.new(0, 0, 0)
- Light.ColorShift_Bottom = Color3.new(0, 0, 0)
- Light.OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
- Light.FogStart = 0
- Light.FogEnd = 100000
- Light.FogColor = Color3.new(0.752941, 0.752941, 0.752941)
- for _,v in pairs(Light:GetChildren()) do
- v:Destroy()
- end
- for _,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Terrain" then
- v:Clear()
- elseif v.ClassName == "Script" or v.ClassName == "LocalScript" then
- v.Disabled = true
- v:Destroy()
- elseif v.ClassName == "Sound" then
- v:Stop()
- v:Destroy()
- else
- v:Destroy()
- end
- end
- local Base = Instance.new("Part")
- Base.BrickColor = BrickColor.new("Bright green")
- Base.Position = Vector3.new(0, -0.600000024, 0)
- Base.CanCollide = true
- Base.Size = Vector3.new(700, 1.20000005, 700)
- Base.Material = "Grass"
- Base.Locked = true
- Base.Anchored = true
- Base.Name = "Base"
- Base.TopSurface = "Smooth"
- Base.BottomSurface = "Smooth"
- Base.Parent = workspace
- for _,v in pairs(Plrs:GetPlayers()) do
- pcall(function()
- v:LoadCharacter()
- end)
- end
- end
- for _,v in pairs(game:GetChildren()) do
- ypcall(function()
- if v.Name ~= "workspace" and v.Name ~= "Players" and v.Name ~= "NetworkServer" and v.Name ~= "StarterPlayer" then --and v.Name ~= "ReplicatedStorage"
- for _,v2 in pairs(v:GetChildren()) do
- if v2.Name ~= "SBEvent" then
- pcall(function()
- if v2.ClassName == "Script" or v2.ClassName == "LocalScript" then
- v2.Disabled = true
- v2:Destroy()
- elseif v2.ClassName == "Sound" then
- v2:Stop()
- v2:Destroy()
- else
- v2:Destroy()
- end
- end)
- end
- end
- elseif v.Name == "Players" then
- for _,v2 in pairs(v:GetChildren()) do
- if v2.ClassName == "Player" then
- ypcall(function()
- Clear(v2)
- end)
- else
- pcall(function()
- if v2.ClassName == "Script" or v2.ClassName == "LocalScript" then
- v2.Disabled = true
- v2:Destroy()
- elseif v2.ClassName == "Sound" then
- v2:Stop()
- v2:Destroy()
- else
- v2:Destroy()
- end
- end)
- end
- end
- end
- end)
- end
- Clean()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement