How to use Primary Parts?

I made a small ground smash effect and I added part in the middle and made it the primary part of the model, in the script that adds the effect when ever i change the primary part position the model doesnt change position and only the primary part does, it leaves the entire model somewhere else

How can i fix this?

also is this the right topic?

Is the model anchored, unanchored, or is the PrimaryPart anchored and the other unanchored Parts Welded to it?

Don’t change the Position of the PrimaryPart, change the Position of the Model.
The Primary Part just allows you to fine tune the location of the Model’s Position.

1 Like

everything is anchored and I used weld constraints to weld the primary part with all of the parts in the model, should i keep it anchored or unachored? and am i supposed to be using weld constraints to weld them together?

If they’re welded together and unanchored, you could use Model:PivotTo(CFrame) instead of positioning the primary part.

1 Like

i think you should just Anchor the primary part, weld all the other parts, and all the other parts should be unanchored. i’m no expert at primaryparts and setting their cframes(i kind of am but i very rarely use primaryparts and setting their cframes), but this should work this way

also, are you using PrimaryPart.Position, or Model:SetPrimaryPartCFrame()?

1 Like

Anchored Parts don’t move, so there’s no reason to weld anchored parts together.

Like I said, move the Model’s Position, NOT the PrimaryPart Position.

1 Like

Im using PrimaryPart.Position, am i supposed to be using Model:SetPrimaryPartCFrame()?
I use it because when you move the position of a humanoidrootpart of a dummy, then the entire dummy moves

Pretty sure you just use MoveTo for the model. That link also mentions TranslateBy and PivotTo (already mentioned by @ObviouslyGreen) depending on what you want to happen.

Please read all the links so you can move the Model according to the result you need.

1 Like

you should either use Model:SetPrimaryPartCFrame(), or as @Scottifly mentioned, PrimaryPart:MoveTo(), and/or other new methods that roblox studio added(for example pivots but i’ll stick to the og)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.