Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

BillboardGUI always on top... How can i do that?

Hi everyone!

I've got a probloem... how can i make BillboardGui Always on top?

I tried but it wasnt on top..

Script:

game.Workspace.ChildAdded:Connect(function(p)
if p.ClassName == "Model" then
wait(0.1)
p.Head = Instance.new("BillboardGui", p.Head)
end
end)

1 comment

0

Change line 1, connect to Connect.

1 answer

✓ Accepted answer

First, you should change the ‘c’ in connect to an uppercase 'C'.

In line 4, you tried to assign something with the Head, which is incorrect.

-- I will remake your code

game.Workspace.ChildAdded:Connect(function(child)
    plr = game:GetService("Players"):GetPlayerFromCharacter(child)

    if plr then
        local billboardGUI = Instance.new("BillboardGui", plr.Character.Head)
        billboardGUI.AlwaysOnTop = true -- Neat property that always puts it on top
    end
end)

1 comment

0

Thank you Very much

This discussion is preserved as it was. New answers, comments, and votes are closed.