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

How would you Rotate a model with a CFrame value?

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

✓ Accepted answer

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.

4 comments

0

What if there are more models in that model?

0

That script will still work. It recursively compiles a table of all Part objects within the given model.

0

How would I call the function? I seem a bit confused on the variables listed.

0

Nvm.

This discussion is preserved as it was. New answers, comments, and votes are closed.