local TextService = game:GetService("TextService")
local TextSettings = {
16,
"SourceSans",
Vector2.one * 1000,
}
local invalidSize = TextService:GetTextSize("\u{FFFF}", unpack(TextSettings))
local function exists(character)
local size = TextService:GetTextSize(character, unpack(TextSettings))
return size.Magnitude ~= invalidSize.Magnitude
end
local function getArchitecture()
local address = tonumber(string.sub(tostring{math.huge}, 8))
if string.len(tostring(address)) <= 10 then
return 32
end
return 64
end
local isMobile = string.match(version(), "^2%.") ~= nil
if isMobile then
if getArchitecture() == 32 or not exists("\u{F8FF}") then
print("Android")
else
print("iOS")
end
else
print("Something else")
end