TruWorlds

Part

Inherits: PhysicsInstance

Parts are the fundamental building block of the TruWorlds game world.

A Part is a primitive geometrical shape that can be used to construct vast, complex structures and worlds.

Properties

CastShadow bool

Whether the Part casts a shadow.

Climbable bool

Whether characters can climb this Part.

local ladder = Part()
ladder.Size = Vector3(1, 10, 0.25)
ladder.Climbable = true
ladder.Anchored = true
ladder.Parent = world
Color Color3

The color of the Part.

Material PartMaterial

The material of the part.

local part = Part()
part.Material = PartMaterial.Glow
part.Color = Color3(0, 0.5, 1)
part.Parent = world
Shape PartShape

The shape of the part.

local ball = Part()
ball.Shape = PartShape.Ball
ball.Size = Vector3(3, 3, 3)
ball.Color = Color3().Random()
ball.Parent = world
Size Vector3

The size of the Part, in studs