"Cleanup" scripts on Roblox are handy tools used in building games to remove loose and unused bricks, which helps reduce lag and keeps a place running smoothly.
You can find these scripts on the free models section, or, if you know how to script, you can build one yourself. Cleanup scripts work in a couple of ways: some run a cleanup automatically every few minutes, while others wait for a player to press a button or type a certain command before tidying up the place. Either way, they're a great way to keep your game optimized.