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!
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!
It easy. Go to the move button, click it, and click the building that u want to move and move it around.
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
.
Model:MoveTo(position)
or Model:SetPrimaryPartCFrame(CFrame)
or getting the primary part Model.PrimaryPart
and setting its CFrame/Position property
Oh okay. I didn’t read that part’s of that senstes
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!
Good luck!
Thank you. You are the first one to say that kind word to me.!
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.