How to make a part move to a pre determined pos

Hello what simple script would change a models position (0,0,0) to (566.78, 81.748, 803.572)

thanks!

2 Likes

Hi there, this is very simple.
For parts it would be

Part.CFrame = Parts CFrame

and for models it would be

Model:PivotTo(Model CFrame)

Hope this helps

You can just do:

Model:PivotTo(CFrame.new(Vector3.new(566.78, 81.748, 803.572)))
1 Like
Pos = Vector3.new(566.78, 81.748, 803.572) -- the position
Part = -- your part

Part:PivotTo(CFrame.new(Pos))

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