How would I get the rotation of the camera?
Things I tried:
camera:GetRoll() --return 1 value..
Other thing I tried:
local X = math.rad(camera.Rotation.X) local Y = math.rad(camera.Rotation.Y) local Z = math.rad(camera.Rotation.Z) --rotation is not a valid member...
There is no rotation aspect of the camera, but you can get the CoordinateFrame of the camera, which will return the 12 diget CFrame code.
local cam = game.Workspace.CurrentCamera
local rotateCode = cam.CoordinateFrame