Hi, I've recently tried an attempt to make an overhead GUI which did nit go down well cause it has no errors and it's not working properly.
01 | local billboardgui = game:GetService( "ServerStorage" ):WaitForChild( "Billboardgui" ) |
02 |
03 | game.Players.PlayerAdded:Connect( function (player) |
04 |
05 | player.CharacterAdded:Connect( function (character) |
06 | if player.Name = = "charlesec" then |
07 | local clonedgui = billboardgui:Clone() |
08 | clonedgui.TextLabel.Text = "Owner" |
09 | clonedgui.TextLabel.TextColor 3 = Color 3. fromRGB( 255 , 255 , 0 ) |
10 | clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head |
11 |
12 | end |
13 |
14 |
15 | end ) |
I hope this is what you've been looking for!
01 | local function NewOverheadGui(title, player) |
02 | local BillboardGui = Instance.new( "BillboardGui" ) |
03 | local TextLabel = Instance.new( "TextLabel" ) |
04 |
05 | BillboardGui.Parent = workspace:WaitForChild(player.Name).Head |
06 | BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling |
07 | BillboardGui.Active = true |
08 | BillboardGui.AlwaysOnTop = true |
09 | BillboardGui.ExtentsOffsetWorldSpace = Vector 3. new( 0 , 5 , 0 ) |
10 | BillboardGui.LightInfluence = 1.000 |
11 | BillboardGui.Size = UDim 2. new( 0 , 200 , 0 , 50 ) |
12 |
13 | TextLabel.Parent = BillboardGui |
14 | TextLabel.BackgroundColor 3 = Color 3. fromRGB( 255 , 255 , 255 ) |
15 | TextLabel.BackgroundTransparency = 1.000 |