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

How to change CFrame.Angles values to and not by?

this script changes the values by and I want to change the values TO. Please help me

model:SetPrimaryPartCFrame((model.MainPart.CFrame) * CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)))

1 answer

✓ Accepted answer

That's because you're multiplying the CFrame. If you read my answer on your previous question carefully, you would see that I said:

model:SetPrimaryPartCFrame(CFrame.new(model.MainPart.Position) * CFrame.Angles(0, math.rad(45), 0)

I made a new CFrame that holds only the position, and multiplied by the angle.

Hope this helps! :)

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