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 |
|
|
|
| 07 Dec 2015 10:34 PM |
local mouse = game.Players.LocalPlayer:GetMouse() local screen_size = Vector2.new(mouse.ViewSizeX, mouse.ViewSizeY) |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 29 Jun 2015 |
| Total Posts: 3040 |
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 07 Dec 2015 10:39 PM |
| Oh, if you are okay with using Scale, then use it. :3 |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 07 Dec 2015 10:46 PM |
Because The GUI's Parent Is Not The Size Of The Screen |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 07 Dec 2015 10:47 PM |
| By setting the ancestors of the GUI to {1, 0}, {1, 0} |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|