KirchohexSX

Untitled

May 23rd, 2026
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. -- Workspace cleanup script (run with your executor)
  2. local Workspace = game:GetService("Workspace")
  3.  
  4. -- Helper to safely destroy an instance if it exists
  5. local function destroyIfExists(parent, name)
  6. local obj = parent:FindFirstChild(name)
  7. if obj then
  8. obj:Destroy()
  9. end
  10. end
  11.  
  12. -- Direct children of Workspace
  13. destroyIfExists(Workspace, "__DEBRIS")
  14. destroyIfExists(Workspace, "__VARIABLES")
  15.  
  16. -- Inside __THINGS
  17. local thingsFolder = Workspace:FindFirstChild("__THINGS")
  18. if thingsFolder then
  19. local thingsToDelete = {
  20. "Cannons", "Coins Comets", "ExclusiveEggPets", "ExclusiveEggs",
  21. "Flags", "Hoverboards", "Items", "Lootbags", "Lootboxes", "Orbs"
  22. }
  23. for _, name in ipairs(thingsToDelete) do
  24. destroyIfExists(thingsFolder, name)
  25. end
  26. end
  27.  
  28. -- Inside __MAP
  29. local mapFolder = Workspace:FindFirstChild("__MAP")
  30. if mapFolder then
  31. -- First level folders
  32. local mapDeletions = {
  33. "Audio", "Boxes", "Cannons", "Gates", "Interactive",
  34. "Lucky Block", "PlayerSpawns", "Rockets", "Scavenger",
  35. "Statues", "Teleports"
  36. }
  37. for _, name in ipairs(mapDeletions) do
  38. destroyIfExists(mapFolder, name)
  39. end
  40.  
  41. -- Inside __MAP / Areas
  42. local areasFolder = mapFolder:FindFirstChild("Areas")
  43. if areasFolder then
  44. local areaDeletions = {
  45. "Beach", "Cave", "Desert", "Easter", "Easter Bunny Hut",
  46. "Forest", "Glacier", "Mine", "Tech", "VIP", "Volcano", "Winter"
  47. }
  48. for _, name in ipairs(areaDeletions) do
  49. destroyIfExists(areasFolder, name)
  50. end
  51. end
  52. end
Advertisement
Add Comment
Please, Sign In to add comment