Open Asterune
Part

Part

A physical part with configurable shape, material, and surfaces.

Creatable
Instance.new("Part")
Inherits
BasePartPVInstanceInstance
Replication
Standard

Behavior

Part represents a block, ball, or cylinder. It inherits physical properties and contact events from BasePart.

Summary

Members17
Properties16
Methods1

Properties

Anchored

Part.Anchored: boolean = false

Whether physics can move the part. Defaults to false.

AngularVelocity

Part.AngularVelocity: Vector3 = Vector3.new(0, 0, 0)

The part's angular velocity around each axis.

BackSurface

The joint surface type on the back face.

BottomSurface

The bottom-face joint surface. Defaults to Inlet.

CFrame

Part.CFrame: CFrame = CFrame.new(0, 0, 0)

The position and orientation in world space. Assignment updates both together.

CanCollide

Part.CanCollide: boolean = true

Whether the part blocks other parts. Defaults to true. Setting this to false does not disable Touched events.

CustomPhysicalProperties

Part.CustomPhysicalProperties: PhysicalProperties? = nil

Overrides material density, friction, and elasticity. When unset, the material supplies these values.

FrontSurface

The joint surface type on the front face.

LeftSurface

The joint surface type on the left face.

LinearVelocity

Part.LinearVelocity: Vector3 = Vector3.new(0, 0, 0)

The part's linear velocity in studs per second.

Material

The surface material used for rendering and physical density. Defaults to Plastic.

Reflectance

Part.Reflectance: number = 0

The surface reflectivity, from 0 to 1. Defaults to 0.

RenderLayer

The rendering layer used for this geometry or light.

RightSurface

The joint surface type on the right face.

TopSurface

The top-face joint surface. Defaults to Studs. Compatible surfaces can form joints when MakeJoints runs.

Transparency

Part.Transparency: number = 0

The transparency, from 0 (opaque) to 1 (invisible). Defaults to 0.

Methods

GetTouchingParts

Part:GetTouchingParts(): { BasePart }

Returns parts recorded in the latest physics contact diagnostics. See BasePart.

Inherited members

Inherited94

Example

Luau
local part = Instance.new("Part")
part.Size = Vector3.new(4, 1, 8)
part.Anchored = true
part.Parent = workspace

Subclasses

SpawnLocation

BasePart · Enum.PartType · Enum.Material · Vector3