To set a primary part in Roblox Studio, select the Model in Explorer, click its PrimaryPart property in Properties, then select the intended Part in Explorer. Check that the property now points to the object you meant to use.

Set the reference in Properties
- Use a saved practice copy and locate the intended Model.
- Select the Model row in Explorer.
- In Properties, click PrimaryPart; the cursor changes for selection.
- Back in Explorer, select the Part you intend to use as the reference.
- Re-select the Model and verify the PrimaryPart field.
The official Models guide documents this selection workflow. It describes PrimaryPart as the physical reference for which BasePart the Model’s pivot and bounding box move with as the Model changes position or orientation.
Separate the reference from the rest of the setup
| Decision | What to identify | Next check |
|---|---|---|
| Model organization | Parent and children | Expected objects exist inside the intended Model |
| PrimaryPart | The chosen BasePart reference | The property points to that object |
| Physical connections | Welds or other joints | Test the intended assembly behavior |
| Scripted movement | Transform method and target | Observe the Model’s actual movement |
The Model API reference lists PrimaryPart as a BasePart property. Its example creates a weld separately and demonstrates PivotTo before assigning PrimaryPart. A reference assignment should not be treated as proof that every other setup step is complete.
For a static structure, use the Parts and assemblies anchoring guide before deciding which objects should remain fixed.
Choose a reference you can explain
Start with a small Model whose parts have distinct names. For a practice display, name the children Base, Wall and Sign. Write down why Base is your intended reference before assigning it.
After setting the field, inspect the Model from several angles and compare the hierarchy with your notes. If the property points to Wall when you intended Base, correct the selection before adding movement or testing physics.
For a real prop, ask which object should provide the reference as the prop moves. The answer depends on the intended construction and motion. This guide does not prescribe one reference for every vehicle, character or decorative object.
Test one change at a time
- Record the Model name, intended PrimaryPart and current hierarchy.
- Set the property and confirm the exact object reference.
- Perform one controlled transform or the intended small movement test.
- Inspect the resulting pivot, object placement and any relevant Output message.
- Test physical behavior separately if the prop is meant to move under simulation.
A field showing the right name proves an assignment, not that a complete vehicle or character system works. Keep the reference check and gameplay test as separate observations.
When you cannot choose the intended Part
- You selected a child instead of the Model: return to the Model row before inspecting PrimaryPart.
- The hierarchy is unclear: use the individual Part selection guide to identify the intended instance.
- You need a different grouping: inspect the organization first; the Ungroup guide covers that separate edit.
- The reference looks correct but movement is wrong: inspect the transform method, target and physical connections rather than repeatedly changing PrimaryPart.
Use the right movement guide
For an authored transform reference, see pivot offsets. For a complete scripted multi-part movement exercise, follow Model tweening with PivotTo. The official Model example shows that PivotTo can be used without a PrimaryPart; choosing the reference and choosing a movement API are related but distinct decisions.
For a layout in Obby, try: “Create a compact display area with a safe spawn and three clearly separated props. Keep the layout simple so I can inspect their hierarchy in Studio.” Review the generated instances before assigning references or adding motion. The brief does not guarantee a particular native Model structure.
Commands and reference behavior were checked against the linked official documentation on November 25, 2026. The named-Part exercise is proposed; no native PrimaryPart assignment, physics test or movement was performed for this article.


