local K=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local M=game:GetService("\071\117\105\083\101\114\118\105\099\101")local D=game:GetService("\087\111\114\107\115\112\097\099\101")local b={}local function a()return D.CurrentCamera.ViewportSize end function b.GetSizeType(K)local M=a()if M.Y>=2160 then return"\052\107"elseif M.Y>=1440 then return"\049\052\052\048\112"elseif M.Y>=720 then return"\055\050\048\112"elseif M.Y>=480 then return"\052\056\048\112"else return"\111\116\104\101\114"end end function b.GetType(D)if K.GamepadEnabled and M:IsTenFootInterface()then return"\099\111\110\115\111\108\101"elseif K.TouchEnabled then local K=a()if K.X>=1023 and K.Y>=767 then return"\116\097\098\108\101\116"else return"\109\111\098\105\108\101"end elseif K.KeyboardEnabled then return"\099\111\109\112\117\116\101\114"else return"\117\110\107\110\111\119\110"end end return b
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
local Workspace = game:GetService("Workspace")

local PlatformHelper = {}

local function getViewportSize()
	return Workspace.CurrentCamera.ViewportSize
end

function PlatformHelper:GetSizeType()
	local size = getViewportSize()
	if size.Y >= 2160 then
		return "4k"
	elseif size.Y >= 1440 then
		return "1440p"
	elseif size.Y >= 720 then
		return "720p"
	elseif size.Y >= 480 then
		return "480p"
	else
		return "other"
	end
end

function PlatformHelper:GetType()
	if UserInputService.GamepadEnabled and GuiService:IsTenFootInterface() then
		return "console"
	elseif UserInputService.TouchEnabled then
		local size = getViewportSize()
		if size.X >= 1023 and size.Y >= 767 then
			return "tablet"
		else
			return "mobile"
		end
	elseif UserInputService.KeyboardEnabled then
		return "computer"
	else
		return "unknown"
	end
end

return PlatformHelper
