so I have a model lets name it toy_ball I have 3 parts in toy_ball I want to make all the parts move at once keeping there welds but in the properties, tab there's, not a position property is it possible to move it all like that keeping welds like if you made a car and wanted to move it it would fall apart without the hinges having welding to the chassis
COMMUNITY QUESTION
how would i edit a position of a model?
2 answers
You can use SetPrimaryPartCFrame() for this, but just make sure you have a PrimaryPart set for the model. Here's an example:
toy_ball:SetPrimaryPartCFrame(CFrame.new(x, y, z)) -- make sure you change these values
If this helps, please accept this answer!
Hello superspeedr1234!
You have to use the :MoveTo() function.
This is an example:
toy_ball:MoveTo(Vector3.new(0, 0, 0))
Change 0, 0, 0 to the position you want. Hope this helps!
1 comment
0
20:35:37.455 - Workspace.car_model.Script:1: attempt to index nil with 'MoveTo'
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
ok so dose the xyz become the cordanate i want the HOLE thing to move to
and where would i put this script and dose it matter
20:38:00.537 - Workspace.car_model.Script:1: attempt to index nil with 'SetPrimaryPartCFrame'