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

The BillboardGui doesnt show up. What did I do wrong?

Asked by 5 years ago

Im trying to make a Wallhack for challanging myself the names show up BillboardGui doesnt show up. What did I do wrong?

Code:
local plrs = game:service'Players';

local function epic_esp(model)

local human = model:WaitForChild('Humanoid',5);

if human then

human.HealthDisplayDistance = math.huge;

human.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOn;

human.NameDisplayDistance = math.huge;

human.NameOcclusion = Enum.NameOcclusion.NoOcclusion;

local esp = Instance.new("BillboardGui", model)

esp.Size = UDim.new({3,0},{7,0})

esp.ResetOnSpawn = false

esp.Active = true

esp.Adornee = model

esp.AlwaysOnTop = true

esp.Enabled = true

local frame = Instance.new("Frame", esp)

frame.BackgroundColor3 = Color3.fromRGB(0, 255, 0)

frame.BorderColor3 = Color3.fromRGB(0, 255, 0)

frame.BorderSizePixel = 6

frame.Size = UDim2.new({0,100},{0,231})

frame.Position = UDim2.new({0.163, 0},{0.319, 0})

frame.Visible = true

end;

end;



for _,p in next,plrs:GetPlayers() do

if p.Character~=nil then epic_esp(p.Character) end;

p.CharacterAdded:Connect(function(c) epic_esp(c) end);

end;



plrs.PlayerAdded:Connect(function(p)

p.CharacterAdded:Connect(function(c) epic_esp(c) end) ;

end);

Answer this question