SoundCleanup helper that tracks connections and instances and destroys them in one call.

1 file, 85 KB in total
Unmodified redistribution of Janitor by howmanysmall, MIT.
sha256 496b5a50f84c89d4ac19733f69fece693faf24178a33982702fb7acafacbd774
Credit required
Free to use anywhere with credit to the creator.
Every connection, instance and running task you create has to be cleaned up, and forgetting one is the most common source of Roblox memory leaks. Janitor tracks them all and destroys them in a single call.
It handles RBXScriptConnections, Instances, functions, threads, other Janitors, and anything with a Destroy method. You can also give an item a key and replace it later, which is useful for things like a current tween.
A strictly better version of the pattern where you keep a table of connections and loop over it.
Original author: howmanysmall
Source: https://github.com/howmanysmall/Janitor
License: MIT
Rigfolio did not write this. It is hosted here unmodified, under the license above, with the original license file included in the download. If you are going to build on it, read that license.
File types this site does not accept for upload (build scripts, web pages, vector sources) were removed from the archive. Nothing the asset needs at runtime was changed. The source link above has the complete original.
No payment. Download it.
You need an account so the download can be tied to you. Browsing needs no account.
Rigfolio does not process this payment, hold it, or refund it. There is no buyer protection here, because there is no payment for us to protect. What Rigfolio does is record that the payment happened and unlock the files.
Clicks, confirms, errors and switches for menus and buttons. Public domain.
ModelModular low poly blocks, ramps and hazards for building obstacle courses.
ModelLow poly trees, rocks, plants and terrain pieces. Public domain, no credit required.
The hash is computed on our server from the files that were uploaded, over every file name and its own sha256. It changes if any file changes, so a seller cannot swap the contents of a listing after people have bought it. See the seller’s profile.