How to get the absolute size of an entire mobile device


So I want to be able to know the whole size of the screen in pixels (including the areas in red. Gunfight Arena has done this.

How can i do it?

3 Likes

You technically do not need that information to clip outside of the “safe” area. How this is done is that the main ScreenGui.ScreenInsets is set to Enum.ScreenInsets.CoreUISafeInsets and the killfeed ScreenGui.ScreenInsets is set to Enum.ScreenInsets.None.

If you still want to get the device inset information, you can insert a blank ScreenGui with the ScreenInsets set to Enum.ScreenInsets.None and the AbsoluteSize will give you the entire dimensions of the device. Subtract the X value from workspace.CurrentCamera.ViewportSize.X then divide by 2 to get the size of the device inset.

1 Like

oh thanks i didnt know they added that i only recognized they added topbar safe insets

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.