Advertisement
PresidentIvan

file_destruction.lua

Mar 21st, 2019
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. --[[ file_destruction.lua is gonna load...]]--
  2.  
  3. warn("file_destruction.lua has loaded!")
  4. function DestroyPart(part)
  5.     if part:IsA("Part") then
  6.         part.BrickColor = BrickColor.new("Really black")
  7.     end
  8. end
  9.  
  10. DestroyPart()
  11.  
  12. function DestroyScript(script)
  13.     if script:IsA("Script") then
  14.         script:Destroy()
  15.     end
  16. end
  17.  
  18. DestroyScript()
  19.  
  20. --[[ If the first version doesn’t work, you can try this script below this message ]]--
  21.  
  22. warn("file_destruction.lua has loaded!")
  23. function DestroyPart(part)
  24.     if part:IsA("Part") then
  25.         part.BrickColor = BrickColor.new("Really black")
  26.     end
  27. end
  28.  
  29. function DestroyScript(script)
  30.     if script:IsA("Script") then
  31.         script:Destroy()
  32.     end
  33. end
  34.  
  35. DestroyPart()
  36. DestroyScript()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement