Good evening skibidi
For some GOOBERISH reason my camera position just starts getting a little jumpy when it hits the rotation limit of the Camera
I’ve tried everything I know of, such as trying to use attachments which did work however it couldn’t be affected by the Humanoid Camera Offset
runService:BindToRenderStep("alt" , Enum.RenderPriority.Camera.Value+1, function(dt)
local cameraCFrame = root.CFrame:ToObjectSpace(camera.CFrame)
local x, y, z = cameraCFrame:ToOrientation()
local ylimit = math.rad(math.clamp(math.deg(y), -limit, limit))
local targetCFrame = root.CFrame:ToWorldSpace(CFrame.fromOrientation(x, ylimit, z))
targetCFrame = CFrame.new(camera.CFrame.Position) * targetCFrame.Rotation
camera.CFrame = targetCFrame
end)
I'd appreciate the help!
also if you're still confused, please pardon my grammar 🙏