Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return script
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- Wo = Instance.new("Model",game:GetService("Lighting"))
- Wo.Name = "CompiledModel"
- -----variables
- local base = Instance.new("Part")
- base.Name = "clean"
- local Bi = Instance.new("BillboardGui")
- local text = Instance.new("TextBox")
- local runner = game.Workspace:WaitForChild("refrop")
- -----variables
- -----game
- wait(0.2)
- local W = Wo
- base.Parent = W
- base.Position = runner.Torso.Position + Vector3.new(0, 1, 0)
- base.Orientation = Vector3.new(0, 0, 0)
- base.Size = Vector3.new(2048, 2048, 2048)
- base.Anchored = false
- base.BrickColor = BrickColor.new("Neon orange")
- base.Material = Enum.Material.Neon
- base.Transparency = 0.5
- base.CanCollide = false
- Bi.Parent = base
- Bi.AlwaysOnTop = true
- Bi.Enabled = true
- Bi.Size = UDim2.new(0, 200, 0, 50)
- text.Parent = Bi
- text.TextScaled = true
- text.BackgroundTransparency = 1
- text.Text = "Cleaning..."
- text.Size = UDim2.new(1, 0, 1, 0)
- -----game
- -----final
- Wo.Parent = workspace
- Wo:MakeJoints()
- local mas1 = Wo:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- Wo:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- -----final
- -----functions
- game.Workspace.clean.Touched:Connect(function(hit)
- repeat
- local char = hit.Parent
- char:destroy()
- until char ~= nil
- text.Text = "Server Cleaned"
- wait(2)
- game.Workspace.clean:destroy()
- end)
- -----functions
Add Comment
Please, Sign In to add comment