Hey there fellas! I've this nice lil' script here for a custom orbital camera. The final thing I want it to do is a free fixed rotation sideways with Q and E buttons, but changing the values at CFrameAngles(5.5, 0, 0) -part makes the camera twisted and weird like this https://i.gyazo.com/027e8b46d903be4ec530edb834f21264.mp4
What would you suggest? Oh, and I don't have any mechanics for the camera rotation yet, just tried changing those values and noticed its a terrible way to work with.
local RunService = game:GetService("RunService")
local target = script.Parent:FindFirstChild("HumanoidRootPart")
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
local angle = 4
local newangle = 4
local function checkDelta(deltaTime)
camera.CoordinateFrame = CFrame.new(target.Position)
* CFrame.Angles(5.5, 0, 0)
* CFrame.new(0, 0, 30)
end
RunService:BindToRenderStep("Check delta", Enum.RenderPriority.First.Value, checkDelta)

1 comment
I get an about:blank for the link- is it dead?