so i want to rotate a model with a script, precisely flip a car, does anyone know how to do this?
COMMUNITY QUESTION
How to Rotate a model with a script?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
Try workspace.Part.Orientation
You'll also need to use workspace.Part.CFrame (Sorry for the vague suggestions. I'm in a hurry :P )
https://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame
If you're trying to move the whole model, make sure you set the model's PrimaryPart(a property of Model). Then from a script you can do [MODELNAME]:SetPrimaryPartCFrame(CFrame)
Thanks for your suggestions guys but your telling me how to set a primary part, not how to rotate it
SetPrimaryPartCFrame() moves the entire model, so if you wanted to rotate it you could maybe do something like: [MODEL]:SetPrimaryPartCFrame([MODEL].PrimaryPart.CFrame * CFrame.Angles(math.rad(90),0,0))
read more about SetPrimaryPartCFrame() here: https://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame