Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Controller script. (doCleanupTask.lua)
- script.Parent.ChildAdded:connect(function (child)
- newCleanup = script.Parent.doCleanUp:clone()
- newCleanup.Parent = child
- newCleanup.Disabled = false
- end)
- -- Cleanup Script (doCleanUp.lua)
- wait(10)
- script.Parent:remove()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement