The code snippet you provided doesn’t have a lot, could you share a bit more information about what behavior you’re trying to create?
From a first glance though, it looks like you’re incorrectly clamping and applying the rotation to the camera.
Give something like this a try:
local maxPitch = 30
local minPitch = -30
Camera.CFrame = CFrame.fromEulerAnglesYXZ(math.clamp(rx, minPitch, maxPitch), ry, rz) + CurrentCamera.Position
I’m not sure how your “CurrentCamera” Part is changing its orientation, but maybe this helps.