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: What Is The Value Of The Whole Screen?

Previous Thread :: Next Thread 
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:33 PM
I need the value of the whole screen. (I'm making a GUI)


Example: {0, 90},{0, 20}
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
07 Dec 2015 10:34 PM
local mouse = game.Players.LocalPlayer:GetMouse()
local screen_size = Vector2.new(mouse.ViewSizeX, mouse.ViewSizeY)
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:34 PM
I'm sorry I don't know what that means. I just need the numbers for this gui im making that needs to take over the whole screen.
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:35 PM
b1
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Dec 2015 10:37 PM
Well it depends entirely on the client. You will need to use a script if you want to use Offset.
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
07 Dec 2015 10:37 PM
just set the gui size to {1, 0}, {1, 0} if u want it to take up the full screen

if you actually need the dimensions of the screen in pixels, use what I said earlier
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:37 PM
I just need the gui to cover the whole screen, that's it..
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:38 PM
That size "{1, 0}, {1, 0}" did not take up the whole screen, not even close.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Dec 2015 10:39 PM
Oh, if you are okay with using Scale, then use it. :3
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
07 Dec 2015 10:39 PM
Then you're clearly doing something wrong, because the arguments of a UDim2 are (scale x, offset x, scale y, offset y)
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Dec 2015 10:39 PM
That size takes up the whole size of its parent. Obviously, a parent is a lot smaller than your screen or something.
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:41 PM
idk if u guys understand what im saying. what im trying to do is have a shop guy and then have a large background transparent like gui behind the shop gui. I want that background transparent gui to cover up the whole screen
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
07 Dec 2015 10:42 PM
....

We're being 100% clear

If you want the GUI to take up the whole screen, then it can't be a child of a GUI that is less than the size of the full screen.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Dec 2015 10:42 PM
Then you need to use Scale to set it to {1, 0}, {1, 0} and make sure all of its ancestors have the same size.
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:44 PM
I seriously have both x and y at {1,0} and it's not covering up the whole screen
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
07 Dec 2015 10:46 PM
Because
The
GUI's
Parent
Is
Not
The
Size
Of
The
Screen
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Dec 2015 10:46 PM
Because one of its ancestors is smaller than that!

Go to its parent, and set it to the same size. Then go to its parent's parent, and set it to the same size. Then go to its parent's parent's parent, and set it to the same size.
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:47 PM
How do i make this so called "parent" the size of the screen
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Dec 2015 10:47 PM
By setting the ancestors of the GUI to {1, 0}, {1, 0}
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:49 PM
Idk where the ancestors are at and would that mean i would have to redo my entire shop gui i made by setting it to 1,0?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Dec 2015 10:51 PM
Let me explain the hierarchy by example.

Game is the parent of Workspace.
Workspace is the parent of BasePlate.
Game and Workspace are both ancestors of BasePlate.

BasePlate is the child of Workspace.
Workspace is the child of Game.
BasePlate and Workspace are both descendants of Game.
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:54 PM
You are making my brain almost fall off. I can't handle that much information. Just why won't it let me customize the position to fit the whole screen?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Dec 2015 10:55 PM
Because the GUIs that it is inside of are smaller than the screen.
Take all of the GUIs that it is inside of and make them {1, 0}, {1, 0}
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
07 Dec 2015 10:57 PM
omg just take the thing u want to fit the screen and put it in the ScreenGui

done
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
07 Dec 2015 10:58 PM
There is one gui with a bunch of item 1, item 2, etc. I made them all 1,0,1,0 then they all just become a huge box on the bottom right of the screen. That did not work.
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