I am trying to find the x and y of the player name, age, menu, chat, and backpack.
I am trying to make them in the box perfectly. Any ideas of the sizes?
I know the topbar y value is 36 pixels. But, I am lost for the x for the things I listed above.
Youβd probably be able to figure this out by checking out the HD Admin model. They add a custom topbar icon so looking through the code may answer your question.
No I am making a border for the icons. Not a custom Icon.
Like adding a box around each icon or all the icons together?
All together. 1 box the chat, backpack, and menu. 1 for username and age.
Use the HD Admin model code to check the padding and size of the icons. Using this info, you can determine what the position and size of the icons are.
That is a good idea! Sorry if you said this before! I will look at it!
The topbar is located under CoreGui, so you can select the elements of it and inspect them.
Here are the exact sizes for the icons.
- Settings, Chat, Backpack, Emote - 0,50,0,36
- Container for Health, Username, and age - 0,170,1,0
- Settings, Chat, Backpack, Emote - 0,50,0,36
- Container for Health, Username, and age - 0,170,0,36 (You made a simple mistake!)
I found the mistake while testing it.
The actual size is 0,170,1,0
It is in a container which is 36 pixels in size on the y axis, so it appears to be 0,170,0,36.
The frameβs location
DataModel β CoreGui β RobloxGui β TopBarContainer β NameHealthContainer
How did you find CoreGui they are hidden from players, I may be blind. But, I know enable/disable them by a script. But I lost with this part:
You can force it to be visible in settings.
It is the path in the explorer which you would have to take to see it.
Or, you can run this in command bar to print itβs size.
print(game.CoreGui.RobloxGui.TopBarContainer.NameHealthContainer.Size)
--> {0, 170}, {1, 0}
Thanks, let me look at this! I will see if this works!