Part

사용되지 않는 항목 표시

The Part object is a type of BasePart. It comes in five different primitive shapes: Ball, Block, Cylinder, Wedge, and CornerWedge.

코드 샘플

Create a Part in a Script

local part = Instance.new("Part")
part.Name = "JurassicPart"
part.Anchored = true
part.Shape = Enum.PartType.Ball
part.Color = Color3.new(1, 1, 1)
part.Parent = workspace -- Put the part into the Workspace

요약

속성

속성BasePart에서 상속되었습니다속성PVInstance에서 상속되었습니다

메서드

메서드BasePart에서 상속되었습니다메서드PVInstance에서 상속되었습니다

이벤트

이벤트BasePart에서 상속되었습니다

속성

복제되지 않음
병렬 읽기

The Shape property sets the overall shape of the object to one of a predetermined list of built-in shapes.

The Enum.PartType enum controls the shape value, and has five possible shapes:

Shape/ValueDescription
BallA spherical shape, like a basketball.
CylinderA rod-like shape, like a tin can.
BlockThe default, brick shape.
WedgeA wedge shape with a slope on one side.
CornerWedgeA wedge shape with slopes on two sides.

Note that MeshPart and solid modeling can be used to obtain completely custom part shapes.

코드 샘플

Create a Part in a Script

local part = Instance.new("Part")
part.Name = "JurassicPart"
part.Anchored = true
part.Shape = Enum.PartType.Ball
part.Color = Color3.new(1, 1, 1)
part.Parent = workspace -- Put the part into the Workspace

메서드

이벤트