I have always had this problem and am finally looking into it. I have a code that rotates a brick 90*. Yet for some reason it is not rotating correctly. I have heard stuff such as floating point errors and stuff but I don't think that is the problem. Please help!
local part = script.Parent
part.CFrame = part.CFrame * CFrame.Angles(math.deg(0),math.deg(90),math.deg(0))

2 comments
Btw, you don't have to do math.rad(0) since it's 0 anyways, but other than that, you're right :3
Thanks dude that really helped