Instances
Part
The general-purpose physical building block in Glorpia.
Inheritance
Part is a BasePart, so it uses all BasePart transform, geometry, appearance and physics properties.
Defaults when created by script
| Name | Type | Description |
|---|---|---|
Size | Vector3 | 4, 1, 2 |
Shape | Enum.PartShape | Block |
Bevel | number | 0 |
ShadeSmooth | boolean | true |
Detail | integer | 8 |
Anchored | boolean | true |
CanCollide | boolean | true |
Shapes
Parts support Block, Ball, Cylinder, Wedge and CornerWedge geometry through Shape.
Luau
local wedge = Instance.new("Part")
wedge.Shape = Enum.PartShape.CornerWedge
wedge.Size = Vector3.new(6, 4, 6)
wedge.Parent = workspaceExample: Create A Platform
Create the Part first, configure it while it is unparented, then parent it into Workspace.
Luau
local platform = Instance.new("Part")
platform.Name = "Platform"
platform.Size = Vector3.new(12, 1, 8)
platform.Position = Vector3.new(0, 4, 0)
platform.Colour = Colour3.fromRGB(90, 120, 255)
platform.Anchored = true
platform.Parent = workspace