How do I get aspect ratio?

I need to a vector2 out of the aspect ratio, but idk how to get the aspect ratio. For certain reasons, I want a part that perfectly fits the whole screen.

Could you read the ViewportSize property from the camera?

local screenSize = workspace.CurrentCamera.ViewportSize

--//do stuff with screenSize

1 Like

Oh yeah, I can, I just learned that. Do you know how I can convert this to part size/vector2?

It’s already a Vector2 type.

So you can grab its X and Y components to resize a part to it or whatever you’re trying to do.

part.Size =, viewportSize.Y, 0)