
11.3k Views
31 Executions
Open Source Universal GetDevice
Universal Script 📌
CMDSPublished 10
3 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
code for your scripts and things (made by PawsThePaw)
local GuiService = game:GetService("GuiService")
local UserInputService = game:GetService("UserInputService")
local function GetDevice()
if (GuiService:IsTenFootInterface()) then
return "Console"
elseif (UserInputService.TouchEnabled and not UserInputService.MouseEnabled) then
local DeviceSize = workspace.CurrentCamera.ViewportSize
if (DeviceSize.Y >= 600) then
return "Tablet"
else
return "Phone"
end
else
return "Desktop"
end
end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!






