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

How do I center the billboard GUI and locking it's size ?

Asked by 8 years ago
01game.Players.PlayerAdded:connect(function(player)
02    player.CharacterAdded:connect(function(char)
03        local plyrGuiH = Instance.new("BillboardGui")
04        plyrGuiH.Name = "HealthOverlay"
05        plyrGuiH.Parent = char.Head
06        plyrGuiH.Adornee = char.Head
07        plyrGuiH.Size = UDim2.new (1,0,1,0,0,0)
08        plyrGuiH.StudsOffset = Vector3.new (0,1.2,0)
09        --plyrGuiH.PlayerToHideFrom = player
10 
11        local frame = Instance.new("Frame")
12        frame.Parent = plyrGuiH
13        frame.Size = UDim2.new (0,180,0,10)
14        frame.BackgroundColor3 = Color3.fromRGB (9, 33, 49)
15 
View all 34 lines...

And how do I limit the distance of the GUI?

0
Do you mean limit the distance of visibility? Like for example if you zoom out all the way it doesn't show up like massive text in the way of everything? CommanderSkywalkerTR 5 — 8y
0
Yup xiFrosty 13 — 8y

Answer this question