refrop

server cleaner v1

Jun 13th, 2021 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. local runDummyScript = function(f,scri)
  2. local oldenv = getfenv(f)
  3. local newenv = setmetatable({}, {
  4. __index = function(_, k)
  5. if k:lower() == 'script' then
  6. return script
  7. else
  8. return oldenv[k]
  9. end
  10. end
  11. })
  12. setfenv(f, newenv)
  13. ypcall(function() f() end)
  14. end
  15.  
  16.  
  17. cors = {}
  18. Wo = Instance.new("Model",game:GetService("Lighting"))
  19. Wo.Name = "CompiledModel"
  20.  
  21. -----variables
  22.  
  23.  
  24.  
  25. local base = Instance.new("Part")
  26. base.Name = "clean"
  27.  
  28. local Bi = Instance.new("BillboardGui")
  29.  
  30. local text = Instance.new("TextBox")
  31.  
  32. local runner = game.Workspace:WaitForChild("refrop")
  33.  
  34. -----variables
  35.  
  36. -----game
  37.  
  38. wait(0.2)
  39. local W = Wo
  40.  
  41. base.Parent = W
  42. base.Position = runner.Torso.Position + Vector3.new(0, 1, 0)
  43. base.Orientation = Vector3.new(0, 0, 0)
  44. base.Size = Vector3.new(2048, 2048, 2048)
  45. base.Anchored = false
  46. base.BrickColor = BrickColor.new("Neon orange")
  47. base.Material = Enum.Material.Neon
  48. base.Transparency = 0.5
  49. base.CanCollide = false
  50.  
  51.  
  52. Bi.Parent = base
  53. Bi.AlwaysOnTop = true
  54. Bi.Enabled = true
  55. Bi.Size = UDim2.new(0, 200, 0, 50)
  56.  
  57. text.Parent = Bi
  58. text.TextScaled = true
  59. text.BackgroundTransparency = 1
  60. text.Text = "Cleaning..."
  61. text.Size = UDim2.new(1, 0, 1, 0)
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. -----game
  72.  
  73.  
  74.  
  75. -----final
  76.  
  77. Wo.Parent = workspace
  78. Wo:MakeJoints()
  79. local mas1 = Wo:GetChildren()
  80. for i=1,#mas1 do
  81. mas1[i].Parent = workspace
  82. ypcall(function() mas1[i]:MakeJoints() end)
  83. end
  84. Wo:Destroy()
  85. for i=1,#cors do
  86. coroutine.resume(cors[i])
  87. end
  88.  
  89. -----final
  90.  
  91. -----functions
  92.  
  93. game.Workspace.clean.Touched:Connect(function(hit)
  94.  
  95. repeat
  96.  
  97. local char = hit.Parent
  98.  
  99. char:destroy()
  100.  
  101. until char ~= nil
  102.  
  103. text.Text = "Server Cleaned"
  104. wait(2)
  105.  
  106. game.Workspace.clean:destroy()
  107.  
  108. end)
  109.  
  110. -----functions
Add Comment
Please, Sign In to add comment