---
title: "GetPivot()"
description: "Returns the world-space pivot CFrame of a BasePart or Model."
canonical: "https://docs.glorpia.com/scripting/functions/get-pivot"
markdown: "https://docs.glorpia.com/scripting/functions/get-pivot.md"
---
# GetPivot()

Returns the world-space pivot CFrame of a BasePart or Model.

**Category:** Scripting / Pivot method

## Syntax

```luau
instance:GetPivot()
```

## Supported classes

| Name | Type | Description |
| --- | --- | --- |
| `BasePart` | CFrame | Returns the part's current CFrame. |
| `Model` | CFrame | Returns the Model pivot chosen from its descendant BaseParts. |

## Example: BasePart

```luau
local part = workspace:FindFirstChild("Part")

if part and part:IsA("BasePart") then
    print(part:GetPivot().Position)
end
```

## Example: Model

```luau
local model = workspace:FindFirstChild("Vehicle")

if model and model:IsA("Model") then
    local pivot = model:GetPivot()
    print(pivot.Position)
end
```

> **Note:** If a Model has no descendant BaseParts, `GetPivot()` raises a runtime error.

## Related

- [PivotTo()](https://docs.glorpia.com/scripting/functions/pivot-to.md) — Move a BasePart or move/rotate a Model using a target CFrame.
- [BasePart](https://docs.glorpia.com/instances/basepart.md) — Part and SpawnLocation transform properties.
- [Model](https://docs.glorpia.com/instances/model.md) — Model grouping and pivot behavior.
