How to change camera ViewportSize

I am using Camera:WorldToScreenPoint() in a viewportFrame, the problem with that is that viewportsize defaluts to 1 and is read only, which causes the function to mess up.