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

how to move a model and how to rotate?

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

1 comment

0

read the rules omfg

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.