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 » Scripters
Home Search
 

Re: Find what Device player is Using?

Previous Thread :: Next Thread 
CardsOfFate is not online. CardsOfFate
Joined: 08 Jul 2014
Total Posts: 761
30 Jun 2015 04:30 PM
Is it possible to find out what find of device the player is using?
Report Abuse
CUBES4LIFE is not online. CUBES4LIFE
Joined: 22 Jun 2009
Total Posts: 4956
30 Jun 2015 04:31 PM
You can if its simply looking at a computer versus a tablet/phone using userinputservice

But nothing more specific than that
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
30 Jun 2015 04:31 PM
You can use UserInputService:

if UIS.TouchEnabled then
print("ON MOBILE")
else
print("NOT ON MOBILE")
end
Report Abuse
CardsOfFate is not online. CardsOfFate
Joined: 08 Jul 2014
Total Posts: 761
30 Jun 2015 04:34 PM
So I could not find out if they are on a Laptop or Computer?
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 Jun 2015 04:38 PM
Laptops are the same as your computers.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
30 Jun 2015 04:38 PM
You can check the size of the screen though, and since the average laptop screen sizes are like 13 inch to 17 inch, and a desktop screen which is around 20 inch to 30 inch.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 Jun 2015 04:40 PM
"You can check the size of the screen though, and since the average laptop screen sizes are like 13 inch to 17 inch, and a desktop screen which is around 20 inch to 30 inch."

How do you get the screensize in inches?
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
30 Jun 2015 04:44 PM
Measurement converter.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 Jun 2015 04:45 PM
Please do tell me how you are planning to get the screensize in inches - on roblox.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
30 Jun 2015 04:48 PM
1. Make a measurement converter, for pixels to inches.

1a. Make your own formulae for the converter.
1b. Use HTTP Service and use a webserver to convert the measurements.

2. Use the mouse.ViewSizeX and ViewSizeY to get the pixels.

3. Use the converter you just made.

4. You did it.
Report Abuse
CardsOfFate is not online. CardsOfFate
Joined: 08 Jul 2014
Total Posts: 761
30 Jun 2015 04:49 PM
So I could predict the size of the screen, you see I'm doing it for GUIS.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 Jun 2015 04:49 PM
Ok. Lets say my screen is:
1080*1980

Get me the size in inches.


1080*1980 is exactly all the info you're going to get from the client. You have no way to get pixel density.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
30 Jun 2015 04:49 PM
Use Scale; not offset.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
30 Jun 2015 04:52 PM
I don't know, use a pixel to inch converter?
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 Jun 2015 04:53 PM
You need the pixel density.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
30 Jun 2015 04:54 PM
So you literally made me waste that time..
Thanks.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
30 Jun 2015 04:54 PM
You're welcome.

Do I get a cash prize?
Report Abuse
fualtyhellboy is not online. fualtyhellboy
Joined: 26 Aug 2012
Total Posts: 283
30 Jun 2015 04:54 PM
Dude, desktop and laptops are practically the same, some have bigger borders, and screen size, but honestly, noone wants to know what they are on... just make the game, then use the Roblox Studio emulater to see how it looks.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
30 Jun 2015 04:55 PM
I want a refund.

How do you pay back time?
Report Abuse
CardsOfFate is not online. CardsOfFate
Joined: 08 Jul 2014
Total Posts: 761
30 Jun 2015 06:45 PM
I've began developing GUI's and I know I have to use scale, It looks relatively decent on everything but 'AVERAGE LAPTOP' which makes it look slightly uneven which totally ruins the GUI. I don't want to leave a bad impression as if that is the first thing a Player see's when they join I doubt they will stay.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
30 Jun 2015 07:20 PM
local isWindows = game:GetService("GuiService").IsWindows
local isTouch = game:GetService("UserInputService").TouchEnabled

print(isWindows)
print(isTouch)


Also, Roblox will probably be releasing a new API to get the exact platform soon.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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