Glorpia Docs
Instances / Base class

BasePart

Shared properties, pivot methods and contact events of Part and SpawnLocation.

Properties

NameTypeDescription
PositionVector3Read/write world-space position.
OrientationVector3Read/write XYZ rotation in degrees. This is the script-facing form of Studio's Orientation row under CFrame.
SizeVector3Read/write dimensions. Every component must be greater than zero.
CFrameCFrameRead/write world-space position and rotation together.
ShapeEnum.PartShapeBlock, Ball, Cylinder, Wedge or CornerWedge.
BevelnumberRead/write edge rounding from 0 to 1.
ShadeSmoothbooleanRead/write smooth shading on generated curved geometry.
DetailintegerRead/write generated mesh detail from 1 through 16. MeshDetail is a compatibility alias.
VerticesintegerRead-only generated vertex count shown by Studio's Properties panel.
TrianglesintegerRead-only generated triangle count shown by Studio's Properties panel.
Color / Colour / Color3 / Colour3Color3 / Colour3Equivalent read/write aliases for the part colour.
TransparencynumberRead/write transparency from 0 to 1.
AnchoredbooleanWhen true, physics does not move the part.
CanCollidebooleanControls whether the part participates in collisions.

Methods

NameTypeDescription
GetPivot()CFrameReturns the BasePart's current CFrame.
PivotTo(cframe)methodSets the BasePart's world-space position and rotation to the target CFrame.
FindFirstChild(name, recursive?)methodFinds a child or descendant by name.
FindFirstChildOfClass(className)methodFinds the first direct child with the exact class name.
GetChildren()tableReturns direct children.
GetDescendants()tableReturns all descendants.
IsA(className)booleanChecks Part/SpawnLocation, BasePart, or Instance as supported.
GetFullName()stringReturns the dotted hierarchy name.
Destroy()methodRemoves the instance and its children.

Events

NameTypeDescription
TouchedsignalFires when a new Workspace contact begins and passes the other BasePart. ServerScripts use the authoritative world; LocalScripts use that client's replicated/local world.
Luau
script.Parent.Touched:Connect(function(hit)
    print(hit:GetFullName())
end)

Example: Make A Rounded Cylinder

Luau
local part = workspace:FindFirstChild("Part")

if part and part:IsA("BasePart") then
    part.Shape = Enum.PartShape.Cylinder
    part.Bevel = 0.4
    part.ShadeSmooth = true
    part.Detail = 8

    print(part.Vertices, part.Triangles)
end
IsA("BasePart") returns true for both Part and SpawnLocation.

Concrete classes