Advertisement
igdegoo

Void SB server destroyer (might not work)

Jul 19th, 2018
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. for _,i in pairs(workspace:GetChildren()) do if i:IsA("PVInstance") and not i:IsA("Terrain") then i:Remove() end end
  2. for _,i in pairs(workspace:GetChildren()) do if i:IsA("Sound") then i:Remove() end end
  3. for _,i in pairs(game:GetService("SoundService"):GetChildren()) do if i:IsA("Sound") then i:Remove() end end
  4.  
  5.  
  6. do --make sky
  7. --Converted with ttyyuu12345's model to script plugin v4
  8. function sandbox(var,func)
  9. local env = getfenv(func)
  10. local newenv = setmetatable({},{
  11. __index = function(self,k)
  12. if k=="script" then
  13. return var
  14. else
  15. return env[k]
  16. end
  17. end,
  18. })
  19. setfenv(func,newenv)
  20. return func
  21. end
  22. cors = {}
  23. mas = Instance.new("Model",game:GetService("Lighting"))
  24. Sky0 = Instance.new("Sky")
  25. Sound1 = Instance.new("Sound")
  26. Sky0.Parent = mas
  27. Sky0.SkyboxBk = "rbxassetid://56677452"
  28. Sky0.SkyboxDn = "rbxassetid://56677452"
  29. Sky0.SkyboxFt = "rbxassetid://56677452"
  30. Sky0.SkyboxLf = "rbxassetid://56677452"
  31. Sky0.SkyboxRt = "rbxassetid://56677452"
  32. Sky0.SkyboxUp = "rbxassetid://56677452"
  33. Sound1.Parent = Sky0
  34. Sound1.SoundId = "rbxassetid://250586724"
  35. Sound1.Looped = true
  36. for i,v in pairs(mas:GetChildren()) do
  37. v.Parent = game:GetService("Lighting")
  38. pcall(function() v:MakeJoints() end)
  39. end
  40. mas:Destroy()
  41. for i,v in pairs(cors) do
  42. spawn(function()
  43. pcall(v)
  44. end)
  45. end
  46. end
  47. Sound1:Play()
  48.  
  49. workspace.ChildAdded:Connect(function(c)
  50. wait()
  51. if c:IsA("Model") then
  52. for _,i in pairs(c:GetChildren()) do
  53. i:Destroy()
  54. wait()
  55. end
  56. else
  57. c:Destroy()
  58. end
  59. end)
  60. game:GetService("Lighting").ChildRemoved:Connect(function(c)
  61. if c:IsA("Sky") then
  62. do --make sky
  63. --Converted with ttyyuu12345's model to script plugin v4
  64. function sandbox(var,func)
  65. local env = getfenv(func)
  66. local newenv = setmetatable({},{
  67. __index = function(self,k)
  68. if k=="script" then
  69. return var
  70. else
  71. return env[k]
  72. end
  73. end,
  74. })
  75. setfenv(func,newenv)
  76. return func
  77. end
  78. cors = {}
  79. mas = Instance.new("Model",game:GetService("Lighting"))
  80. Sky0 = Instance.new("Sky")
  81. Sound1 = Instance.new("Sound")
  82. Sky0.Parent = mas
  83. Sky0.SkyboxBk = "rbxassetid://56677452"
  84. Sky0.SkyboxDn = "rbxassetid://56677452"
  85. Sky0.SkyboxFt = "rbxassetid://56677452"
  86. Sky0.SkyboxLf = "rbxassetid://56677452"
  87. Sky0.SkyboxRt = "rbxassetid://56677452"
  88. Sky0.SkyboxUp = "rbxassetid://56677452"
  89. Sound1.Parent = Sky0
  90. Sound1.SoundId = "rbxassetid://250586724"
  91. Sound1.Looped = true
  92. for i,v in pairs(mas:GetChildren()) do
  93. v.Parent = game:GetService("Lighting")
  94. pcall(function() v:MakeJoints() end)
  95. end
  96. mas:Destroy()
  97. for i,v in pairs(cors) do
  98. spawn(function()
  99. pcall(v)
  100. end)
  101. end
  102. end
  103. Sound1:Play()
  104. end
  105. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement