Model tweaking out when CFrame rotated

CurrentPart.PrimaryPart.CFrame = CurrentPart.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(Rotation), 0)		

Not sure what I’m doing wrong here nor do I know what to call what’s happening. Can anyone help?

make sure that the cframe rotation isn’t being changed more than once
try adding a print after setting the rotation if it printed alot then the problem isnot in your cframe logic

CurrentPart.PrimaryPart.CFrame = CurrentPart.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(Rotation), 0)		
print("Rotated")

That helped a lot, thanks! Figured it out, it ended up being that CFrame was being fired twice and making different adjustments

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.