PlaceCleaner
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
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
| Name | Type | Default | Description |
|---|---|---|---|
| Target | ShotInstance | Where the pulled-out effects go; by default a Folder named CleanedEffects under Workspace. | |
| DryRun | boolean | True reports only, and nothing moves. |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| MoveBeams | () | CleanReport | Puts each Beam on a blank anchored part between its two attachments, so the Model it sat in can be merged or deleted. |
| MoveEmitters | () | CleanReport | Puts each ParticleEmitter on a blank part sized like its old parent, or on an attachment of one. |
| MoveLights | () | CleanReport | Pulls 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
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
