Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i use the :Debris function?

1 answer

✓ Accepted answer

I believe what you actually want to learn is how to use the Debris service, or more accurately, the :AddItem() function.

local debris = game:GetService("Debris") --// Get the service
local part = game.Workspace:WaitForChild("Part") --// The part to remove

debris:AddItem(part,10) --// Removes the part after 10 seconds, not interrupting the code

Hope I helped!

~TDP

This discussion is preserved as it was. New answers, comments, and votes are closed.