Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

?Introduction to Billboard GUIs

Asked by 8 years ago

What is a billboard GUI? May I be introduced with tutorials, help, and etc to this instance? I am sure that it is like a 3d object but can it only be seen by one player with it?

Thanks!

billboard = Instance.new("BillboardGui") -- where would it be placed? 

2 answers

Log in to vote
1
Answered by
wackem 50
8 years ago

Because you did not define a parent to the billboard GUI it won't go anywhere. You can use this:

billboard = Instance.new("BillboardGui", workspace.Part)

But nothing will show up because it works like a screen GUI, just hovers above a part, so you're going to need to make a frame.

billboard = Instance.new("BillboardGui", workspace.Part)
gui = Instance.new("Frame", billboard)
gui.Size = UDim2.new(1, 0, 1, 0)
gui.Position = UDim2.new(0, 0, 0, 0)

Now you can mess around with it, add things like textlabels, scrollingframes, etc. Hope this helped!

It can be seen by all players (depending on it's situation) You can see the wiki entry here

Ad
Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
8 years ago

BillboardGuis are somewhat like your name tag in game. They are GUI elements that hover over specified objects. Whether the GUI is a direct child of the object or just has the adornee set to a specified object in workspace. Some users have used BillboardGuis to make raid timers, putting rankings above a person's head, or to even recognize a player as being an admin or MVP.

BillboardGuis are similar to ScreenGuis and SurfaceGuis in terms of being a holder to display actual GUI elements such as textlabels, images, frames, or other objects. Some properties that come along with BillboardGuis are as follows.

Adornee

Used to set a brick to display the Billboard Gui. If you want to maintain full client interaction, then like SurfaceGuis, you need to set the adornee property to a part you want the GUI elements to display on and place the GUI in PlayerGui.

AlwaysOnTop

Self explanatory, it will keep the BillboardGui on top of all objects that might interfere with it. Like in the player name tags in game Occlusion property, if the property is set properly you can have the game determine if the Gui shows up through bricks or not.

Other properties, you can explore here.

Hopefully this answer helped. If you have any questions, feel free to post them in the comments below.

Answer this question