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

is it possible to make a name tag gui for all players? [closed]

Asked by 4 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

script:

local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
game.Players.PlayerAdded:Connect(function(player)
    local clonedgui = billboardgui:Clone()
    clonedgui.Parent = ?
end)

? = what is the parent can i use local player?

Closed as Not Constructive by EzraNehemiah_TF2

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 4 years ago

You need to use the CharacterAdded event.

local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
game.Players.PlayerAdded:Connect(function(player)
    local clonedgui = billboardgui:Clone()
    player.CharacterAdded:Connect(function(char)
        clonedgui.Parent = char.Head
    end)
end)
Ad