wait(1) local player = game.Players.LocalPlayer print("Found Player") local character = player.Character print("Found character") local Health = player.Character.Humanoid.Health print("Found health") local MaxHealth = player.Character.Humanoid.MaxHealth print("Found MaxHealth") local bg = Instance.new("BillboardGui") bg.Parent = player.PlayerGui bg.Adornee = character.Head bg.Size = UDim2.new(1, 0, 1, 0) bg.StudsOffset = Vector3.new(0, 2, 0) print("MadeGui") local frame = Instance.new("Frame") frame.Parent = bg frame.Size = UDim2.new(1, 0, 1, 0) frame.BackgroundTransparency = 1 frame.BackgroundColor3 = Color3.new(1, 1, 1) print("Made Frame") local text = Instance.new("TextLabel") text.Parent = frame text.Position = UDim2.new(0.25, 0, 0.25, 0) text.Size = UDim2.new(0, 150, 0, 20) text.BorderSizePixel = 0 text.TextScaled = true text.TextWrapped = true text.Text = Health.."/"..MaxHealth print("Made Text") player.Character.Humanoid.Health.changed:connect(function(HTH) text.Text = Health.."/"..MaxHealth print(player.name .. Health.."/"..MaxHealth) end)
Also at line 36, It is getting an error for 'Health' Is it because of the local Health? Probs.... But anyways.. I was wondering if there was something that I needed to do to the BillBoard GUI to make it so everyone can see it.
Edit: I was just reading up on some stuff.. And the way that it did it was that it created a new brick, then put that BillBoard GUI attacked to the brick and put it inside the players head. Is there any other way to do this then doing that?