spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 03 Jan 2013 05:12 PM |
| How do you find out if a player is using roblox mobile? |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 05:13 PM |
| What is this roblox mobile? |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 05:18 PM |
@yellowbrick1 http://blog.roblox.com/2012/12/roblox-mobile-is-out-of-beta-download-and-play-today/
¬ LuaLearners Elite/Writer |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 05:21 PM |
| Not sure if Doom's post answered OP's question. If not, here's the answer: You'd check if TouchEnabled is true. This means that the user has a touchscreen. It's a property of UserInputService which can be found here: http://wiki.roblox.com/index.php/RBX.lua.UserInputService_(Service) |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 05:21 PM |
There is a way, it goes something like this-
if Game:GetService('Mobile or something like that') then print('User is playing via mobile device'); else print('User is playing via computer'); end |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 05:22 PM |
Ah yes, that's what it was. So this would work fine.
if Game:GetService('UserInputService') then print('User is playing via mobile device'); else print('User is playing via computer'); end |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 05:26 PM |
| Wait, the service can only be accessed by mobile devices? Did not know that... |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 05:30 PM |
In a LuclaScirtp
if game:GetService("UserInputService").TouchEnabled then --mobile stuff else --normal stuff end
hpaayp? |
|
|
| Report Abuse |
|
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 03 Jan 2013 07:37 PM |
| Alright thanks guys for your help. |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2013 08:10 PM |
| What Jared said. Forgot about that part. |
|
|
| Report Abuse |
|
|