How can I move a model?

Hello!

So I wanted to move a model for my game.

But I didn’t see any Position property while scripting. Can anyone tell me how to move a model?

Thanks! :smiley:

1 Like

It easy. Go to the move button, click it, and click the building that u want to move and move it around.

:grinning:

That may be true, but I posted It in #help-and-feedback:scripting-support. So that means I want to do this via a Script.

4 Likes

Model:MoveTo(position) or Model:SetPrimaryPartCFrame(CFrame) or getting the primary part Model.PrimaryPart and setting its CFrame/Position property

5 Likes

Oh okay. I didn’t read that part’s of that senstes

1 Like

So that means I should make a PrimaryPart right?

Correct, for any of the things I have mentioned a PrimaryPart is required

Thanks @XxD_flam for attempting to help! It’s good as you decide to try you’re best to help. If there was an option, I there would be 2 solutions! :stuck_out_tongue:

Good luck!

Thank you. You are the first one to say that kind word to me.!

:relaxed:

1 Like

Depends on the situation. For vehicles and other physics models that don’t require an immense amount of precision that need to be replicated in, I usually use Model:Clone() and Model:MoveTo(). In basically every other situation, use Model.PrimaryPart. This is why many scripts which use “buildable” entities use a primary part and a collision hull.

1 Like