How to get Roblox Viewport In Studio

So I am trying to make a plugin that instantly converts a nonaspect ratio/ no percentages UI to a fully responsive one. The problem is I need to get the Roblox viewport x and y length in pixels. I’ve tried looking up but can’t find anything. How can I do this?

Nvm I fixed it by using the current cameras viewport size