Glorpia Docs
Instances

Folder

A hierarchy container with Explorer icon colour, visibility and collision controls for its descendants.

Properties

NameTypeDescription
NamestringFolder name.
ParentInstanceWhere the Folder sits in the hierarchy.
IconColor3 / IconColour3Color3 / Colour3Tints the Folder icon shown in Studio Explorer. Default: white.
VisiblebooleanWhen false, descendant BaseParts are not rendered. Default: true.
CanCollidebooleanWhen false, descendant BaseParts do not participate in collision. Default: true.

Visible and CanCollide act on descendants without changing the descendants' own Transparency or CanCollide values.

A descendant BasePart is visible or collidable only when its own properties and every containing Model or Folder allow that behavior.

Hierarchy methods

NameTypeDescription
FindFirstChild(name, recursive?)methodFind a child or descendant by name.
GetChildren()methodGet direct children.
GetDescendants()methodGet all descendants.
Destroy()methodDestroy the Folder and its descendants.

Example

Luau
local folder = Instance.new("Folder")
folder.Name = "Generated"
folder.IconColour3 = Colour3.fromRGB(90, 170, 255)
folder.Parent = workspace

local part = Instance.new("Part")
part.Name = "GeneratedPart"
part.Parent = folder

folder.Visible = false
folder.CanCollide = false