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

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

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?

1 answer

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)

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