generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Roblox Mobile

Previous Thread :: Next Thread 
spynaz is not online. 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
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
03 Jan 2013 05:13 PM
What is this roblox mobile?
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
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
angelinafm is not online. angelinafm
Joined: 10 Apr 2011
Total Posts: 134
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
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
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
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
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
angelinafm is not online. angelinafm
Joined: 10 Apr 2011
Total Posts: 134
03 Jan 2013 05:26 PM
Wait, the service can only be accessed by mobile devices? Did not know that...
Report Abuse
jaredgreedy is not online. jaredgreedy
Joined: 31 Mar 2012
Total Posts: 27
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 is not online. spynaz
Joined: 17 Feb 2011
Total Posts: 1326
03 Jan 2013 07:37 PM
Alright thanks guys for your help.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
04 Jan 2013 08:10 PM
What Jared said. Forgot about that part.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image