Camera CFrame tweens in unexpected angle

Camera tweens like this when I have this

CFrame.new(5.493, 176.419, -703.181) * CFrame.Angles(math.rad(25), math.rad(-90), math.rad(0))

unfortunately this is the result

I want it to look like this

Switch the first math.rad(25) with a 0, then math.rad(0) with 25.

Let me know if this works.

CFrame.Angles(x,y,z)

You probably did the wrong Angles in CFrame.Angles, you’d probably have to experiment with it till you get the right outcome

1 Like

You are rotating the Y value by 90 degrees, so the part is now facing the Z axis. Because of this, to rotate it up you need to rotate the Z axis, not the X axis.

unfortunately, it doesn’t work

code that i put

CFrame.new(5.493, 176.419, -703.181) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(30))

How does it face as of now when testing?

it just turns the other direction

Have you done anything in a minus?

I think it may require a bit more experimentation, why do you need that -90 exactly? Try experimenting around with different angles

@IcyDivi not sure what you mean

@EmbatTheHybrid

so it faces the side that I want which is what I have currently

You have to experiment with angles then, try both the x and z with positive and negative angles