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

How do I rotate a model with a Cframe?

1 answer

You should look at the contents of what CFrame actually is: http://wiki.roblox.com/index.php?title=CFrame

The first three values you have in your CFrame.new are a Vector3 value for position.

In order to change the angles you would need to multiply your CFrame (keeping the position) by EulerAngles.

model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(45), 0, 0))

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