Cframe.angles() is slightly weird

So I’ve been making something for a barrage.
I set the CFrame relative to the HumanoidRootPart.
I also times it by CFrame.Angles(90,0,0).

But the problem is is when I set the x to lower than 90, it points down at 45 degrees for any number.
And when I set the x to 90 or higher, it always points at a 135 degree angle.
Here is the line of code.

vfx.PrimaryPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) * CFrame.Angles(90,0,0)

Please explain whats going on!

Oh i realised i forgot math.rad(90)!

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