Advertisement
Wehttam664

Standard Debris Cleanup (Self-Reference)

Jan 3rd, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. -- Controller script. (doCleanupTask.lua)
  2. script.Parent.ChildAdded:connect(function (child)
  3.     newCleanup = script.Parent.doCleanUp:clone()
  4.     newCleanup.Parent = child
  5.     newCleanup.Disabled = false
  6. end)
  7.  
  8. -- Cleanup Script (doCleanUp.lua)
  9. wait(10)
  10. script.Parent:remove()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement