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 |
|
|
| |
|
makerror
|
  |
| Joined: 29 Aug 2011 |
| Total Posts: 493 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 04 Jan 2014 04:24 AM |
| Instance a new ScreenGui and the AbsoluteSize is the player's resolution. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 04 Jan 2014 04:32 AM |
| Thanks phone, I was ninja'd. :( |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2014 05:03 AM |
:D
ElectricBlaze isn't banned anymore
Keyboard not found. Press F1 to continue. |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2014 05:05 AM |
| We'll see how long that lasts. xD |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2014 05:10 AM |
Wait...
What do you mean?
Keyboard not found. Press F1 to continue. |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2014 05:16 AM |
| I get banned a lot. One of the side-effects of being an OTer. |
|
|
| Report Abuse |
|
|