how to move a model using cfame to one location and how to rotate a model 122.25, 15.887, 459.8 this is the location i what it to be at
✓ ANSWER ACCEPTED
how to move a model and how to rotate?
1 answer
✓ Accepted answer
When you make your model, make sure to set a primary part (this will be the part that moves everything, like a handle on a gun)
Now, use this script to move your model:
Model:SetPrimaryPartCFrame(CFrame.new(0,0,0)) --Put Custom CFrame here
--To rotate your model, use this part:
Model:SetPrimaryPartCFrame(CFrame.new(0,0,0)*CFrame.Angles(0,0,0))
--Same, but edit the Angles part (math.pi is the best to use for basic rotation)
2 comments
0
thanks
0
you could use TranslateBy()
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
read the rules omfg