I am attempting to create a camera with a full range of rotation (so the pitch is not clamped like the normal camera's is). I have run into an issue that I cannot find a way around, and there does not seem to be any information on how to fix it. I know, for a fact, that it is possible to overcome this issue, as I have seen other games where the issue was not present. Here is the code I am running to produce the issue:
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable local t = 0 RunService:BindToRenderStep("ScrCameraUpdate", Enum.RenderPriority.Camera.Value, function() t = t + 0.5 local targetPart = game.Players.LocalPlayer.Character.Head local lv = (targetPart.CFrame * CFrame.Angles(math.rad(t),0,0)).lookVector local offset = targetPart.Position - (lv*Camera.zoomOut) workspace.CurrentCamera.CoordinateFrame = CFrame.new(offset, targetPart.Position) end)
If you're talking about the camera not being able to go 360 degree up/down, you can simpfully fix this by setting the roll to 180' when the camera's angle reaches 180.