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

Rotating a model around the center of it like in studio but with a script?

When you rotate a model in studio it rotates the model around its center point, is there any class or property that allows to re create this effect but in a script?

1 comment

0

try using cframe

1 answer

All you have to do is multiply the CFrame by CFrame.Angles to rotate it just like how it is in studio.

Part.CFrame = Part.CFrame * CFrame.Angles(0, math.pi / 2, 0) -- 90 degrees

2 comments

0

That works for a part but not for a model. I need to recreate the effect for a model. A model doesnt have a CFrame property.

0

If you set the primarypart of the model you could use SetPrimaryPartCFrame

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