HELP! I want to make an intro cutscene but when I load in the camera’s orientation is wrong.
Here is the script:
local Controls = require(LocalPlayer.PlayerScripts.PlayerModule):GetControls()
Controls:Disable()
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = CFrame.new(4,6.5,4.5)
camera.CFrame *= CFrame.Angles(math.rad(-14.5),math.rad(-40),math.rad(0))
I have printed the math.rad() normally and it seems to work fine, but when i use it here, instead of getting the orientation as -14.5,-40,0 I get -11.058, -40.916, 9.438.
I don’t understand why this is happening, maybe someone who knows how CFrames or radians work better than me can tell me what to do.
It might seem like the same thing, but it’s not. When you do camera.CFrame = CFrame.new(4,6.5,4.5), the camera has no rotation yet, so the next rotation you apply (the Y rotation) will be global. After that, any rotations will be local.
You can get the same result by using other transformations, but in this case, this is the simplest way.