Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I be able to move a model in game?

Hi, could anybody point me in the right direction as to how I can move a model while in the game just like you would in studio.

I want to make it clear that I do NOT want someone to do it for me, I would just like to be pointed in the right direction as I am struggling to find this information on my own.

Thank you

2 answers

✓ Accepted answer

To move a model in game, you use model:MoveTo(Position) model is the object with the class name, model, and position is a vector3 value, using MoveTo can move a model to a new position.

1 comment

0

thx

You can move a model either with the MoveTo() function or the :SetPrimaryPartCFrame() function. MoveTo() will set it's position using a Vector3 Value while SetPrimaryPartCFrame() gives a CFrame value. I prefer CFrame because using MoveTo can change it's position due to objects around it.

MyModel:MoveTo(Vector3.new(10,10,10))

MyModel:SetPrimaryPartCFrame(CFrame.new(Vector3.new(10,10,10)))

This discussion is preserved as it was. New answers, comments, and votes are closed.