Get size of screen from plugin script

Basically, I need to get the size of the screen when the plugin is in use from the plugins script.

I understand the client’s in-game camera has a ViewportSize property, but i did not think that would be usable in this scenario as the property is not replicated

local workspace = game:GetService(“Workspace”)
local screenGui = plugin:CreateDockWidgetPluginGui(“MyPluginGui”, DockWidgetPluginGuiInfo.new(Enum.InitialDockState.Float, true, false, 300, 200, 300, 200))

local function getScreenSize()
local screenSize = workspace.CurrentCamera.ViewportSize
– Do something with the screenSize
print("Screen Size: " … tostring(screenSize.X) … “x” … tostring(screenSize.Y))
end

getScreenSize()

Thanks, but that is just the size of the widget to view the actual world I more need the size of the entire screen including other widgets and the ribbons at the top

To be fair i might not have been specific enough