Universal Script 📌
11.3k Views
44 Executions

Open Source Universal GetDevice

Universal Script 📌
CMDS
CMDSPublished 10
3 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

code for your scripts and things (made by PawsThePaw)

Updates

  1. Script edited: Create script

View Raw
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

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
178.8k
1.7M
Bumped 3 hours ago
Key System
Universal Script 📌
9.1k
31.5k
Bumped 4 hours ago
Script hub
49.8k
12.3k
Bumped 5 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 9 hours ago
Key System
Script hub
20.6k
4.0k
Bumped 10 hours ago
Key System
Paid
Universal Script 📌
736
210
Approved 16 hours ago
Universal Script 📌
640
2.5k
Approved 16 hours ago