--// variables //--
local gui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
if char.Head:FindFirstChild("BillboardGui") then
print("BillboardGui is already inserted")
else
local clone = gui:Clone()
clone.Frame.Name.Text = player.Name
clone.Frame.Name.TextColor3 = Color3.RGB(100,0,0)
clone.Parent = game.Workspace:WaitForChild(player.Name).Head
end
end)
end)
(Without line 10 being commented) ServerScriptService.Script:10: attempt to index string with 'Text'
(With line 10 being commented) ServerScriptService.Script:11: attempt to call a nil value
With both 11 and 10 being commented, the gui does duplicate. Why does this happen?

1 comment
I'm assuming "Name" is a TextLabel.