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: Screen resoliution

Previous Thread :: Next Thread 
makerror is not online. makerror
Joined: 29 Aug 2011
Total Posts: 493
04 Jan 2014 04:06 AM
Is it possible to get player's screen resoliution?

I tried this:
print(game:GetService("RenderSettings").Resoliution)

Error: 11:42:40.441 - singleton RenderSettings already exists
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
04 Jan 2014 04:18 AM
Resolution*
Report Abuse
makerror is not online. makerror
Joined: 29 Aug 2011
Total Posts: 493
04 Jan 2014 04:19 AM
Still same error
Report Abuse
makerror is not online. makerror
Joined: 29 Aug 2011
Total Posts: 493
04 Jan 2014 04:20 AM
http://wiki.roblox.com/index.php/Resolution_(Property)
Report Abuse
sparker22 is not online. sparker22
Joined: 11 Mar 2010
Total Posts: 846
04 Jan 2014 04:21 AM
According the wiki, it seems like the RenderSettings aren't even located under the DataModel.(game) It's actually located under the GlobalSettings object. However, I don't know how nor think you can even access. Hard to tell since GlobalSettings pretty much has no documentation.
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
04 Jan 2014 04:24 AM
Instance a new ScreenGui and the AbsoluteSize is the player's resolution.
Report Abuse
makerror is not online. makerror
Joined: 29 Aug 2011
Total Posts: 493
04 Jan 2014 04:26 AM
"Instance a new ScreenGui and the AbsoluteSize is the player's resolution."

True :O, thanks
Report Abuse
sparker22 is not online. sparker22
Joined: 11 Mar 2010
Total Posts: 846
04 Jan 2014 04:28 AM
@Vaporation

Never even thought of that. Completely slipped my mind.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
04 Jan 2014 04:31 AM
In a LocalScript:

repeat wait() until game.Players.LocalPlayer
local p = game.Players.LocalPlayer
local resolution

local g = Instance.new("ScreenGui", p.PlayerGui)
local f = Instance.new("Frame", g)
f.Size = UDim2.new (1, 0, 1, 0)

resolution = g.AbsoluteSize
print(resolution)

g:destroy()
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
04 Jan 2014 04:32 AM
Thanks phone, I was ninja'd. :(
Report Abuse
Basswobble is not online. Basswobble
Joined: 18 Jul 2011
Total Posts: 3249
04 Jan 2014 05:03 AM
:D

ElectricBlaze isn't banned anymore

Keyboard not found. Press F1 to continue.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
04 Jan 2014 05:05 AM
We'll see how long that lasts. xD
Report Abuse
Basswobble is not online. Basswobble
Joined: 18 Jul 2011
Total Posts: 3249
04 Jan 2014 05:10 AM
Wait...

What do you mean?

Keyboard not found. Press F1 to continue.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
04 Jan 2014 05:16 AM
I get banned a lot. One of the side-effects of being an OTer.
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