Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How would you Rotate a model with a CFrame value?

Asked by 10 years ago

I know the class reference guide states a "Model" doesn't have a rotation value in the properties. Does anyone know how to rotate it to a certain CFrame angle?

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

Models are not Parts, they are simply organizational structures. You have to set the CFrames of the Parts inside of a Model to be able to set the Model's Position and Rotation.

Here is a script of mine that will work for you. It should be self-explanatory, but comment on this and I'll clarify what you need.

0
What if there are more models in that model? Orlando777 315 — 10y
0
That script will still work. It recursively compiles a table of all Part objects within the given model. adark 5487 — 10y
0
How would I call the function? I seem a bit confused on the variables listed. Orlando777 315 — 10y
0
Nvm. Orlando777 315 — 10y
Ad

Answer this question