> For the complete documentation index, see [llms.txt](https://docs.easy.gg/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy.gg/scripting/bedwars-scripting/objects/part.md).

# Part

For examples on how to use, refer to PartService.

Creates a Roblox [BasePart](https://create.roblox.com/docs/reference/engine/classes/BasePart) with a block texture from [ItemType](/scripting/bedwars-scripting/types/itemtype.md).

### Functions

#### setPosition(position: [Vector3](https://create.roblox.com/docs/reference/engine/datatypes/Vector3))

Sets the position of the part.

#### getPosition(): [Vector3](https://create.roblox.com/docs/reference/engine/datatypes/Vector3)

Returns the position of the part.

#### setRotation(rotation: [Vector3](https://create.roblox.com/docs/reference/engine/datatypes/Vector3))

Sets the rotation of the part.

#### getRotation(): [Vector3](https://create.roblox.com/docs/reference/engine/datatypes/Vector3)

Returns the rotation of the part.

#### setCFrame(cframe: [CFrame](https://create.roblox.com/docs/reference/engine/datatypes/CFrame))

Sets the CFrame of the part.

#### getCFrame(): [CFrame](https://create.roblox.com/docs/reference/engine/datatypes/CFrame)

Returns the CFrame of the part.

#### setSize(area: [Vector3](https://create.roblox.com/docs/reference/engine/datatypes/Vector3))

Sets the size of the part.

#### getSize(): [Vector3](https://create.roblox.com/docs/reference/engine/datatypes/Vector3)

Returns the size of the part.

#### setCollidable(collidable: boolean)

Sets whether the part should collide with other models, blocks, and players. Defaults to true on creation.

#### setAnchored(anchored: boolean)

Sets whether the part should have physics applied to it. Defaults to true on creation.

#### setTransparency(transparency: number)

Sets the transparency of the part. Transparency ranges from 0 (opaque) to 1 (invisible).

#### getTransparency(): number

Returns the transparency of the part. Transparency ranges from 0 (opaque) to 1 (invisible).

#### destroy()

Destroys the part.
