menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
How to check if user is on mobile?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
How to check if user is on mobile?
MyRandomThoughts
Join Date: 2015-08-21
Post Count: 421
#183543152
Saturday, February 13, 2016 11:57 PM GMT
Help please <: I know basic scripting, I just need to know the service and Method/Property.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Wrathsong
Join Date: 2012-07-05
Post Count: 22393
#183543396
Sunday, February 14, 2016 12:00 AM GMT
http://wiki.roblox.com/index.php?title=API:Class/UserInputService
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
nicemike40
Join Date: 2008-12-19
Post Count: 1814
#183543483
Sunday, February 14, 2016 12:01 AM GMT
Well, you could check if they have a touchscreen: if game:GetService("UserInputService").TouchEnabled == true then print("Player is using a touch-screen device") end source:
http://wiki.roblox.com/index.php?title=API:Class/UserInputService/TouchEnabled
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right