#camera has weird world space offset

1 messages · Page 1 of 1 (latest)

stray pewter
#
        local Pitch:number,Yaw:number,Roll:number = HumanoidRootPart.CFrame:ToObjectSpace(CurrentCamera.CFrame):ToOrientation()
    
        Yaw = CameraUtility.CalculateRotationLimit(Yaw,-Limit.Yaw,Limit.Yaw)
        
        CurrentCamera.CFrame = HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(CurrentCamera.CFrame.Position))*CFrame.fromOrientation(Pitch,Yaw,Roll)
#
CurrentCamera.CFrame = HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(CurrentCamera.CFrame.Position))*CFrame.fromOrientation(Pitch,Yaw,Roll)
#

this part is broken and i dont know why

#

it has this weird positional offset and its annoying me