PlaceCleaner

Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.

ShotInstancenot creatablecomingRoblox

Up and coming

Pull beams, particle emitters and lights out of a place's Models onto blank parts, in seconds, on a copy.

RobloxFileService:CreateCleaner(file, root) makes one; the passes look under root, Workspace by default. Each pass returns how many moved and a list of problems, such as a Beam missing an attachment, which is never an error. Set DryRun to report without moving anything, and check the result with a PlaceDiff. It works on copies and never cleans a file in place.

Properties

NameTypeDefaultDescription
TargetShotInstanceWhere the pulled-out effects go; by default a Folder named CleanedEffects under Workspace.
DryRunbooleanTrue reports only, and nothing moves.

Methods

NameArgumentsReturnsDescription
MoveBeams()CleanReportPuts each Beam on a blank anchored part between its two attachments, so the Model it sat in can be merged or deleted.
MoveEmitters()CleanReportPuts each ParticleEmitter on a blank part sized like its old parent, or on an attachment of one.
MoveLights()CleanReportPulls the lights out of their Models onto blank parts and reports how many moved and any problems.
Filter(predicate: (ShotInstance) -> boolean){ ShotInstance }
From ShotInstance 33