Overhead GUI doesnt work

Hi, I made script that shows username and group rank, but it doesnt work. May someone help?

Here is code.

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local groupID = groupid -- it goes here
		local guiclone = script.BillboardGui:Clone() 
		guiclone.Parent = character.Head 
		
		local textlabel = script.BillboardGui.TextLabel 
		local grouprank = player:GetRoleInGroup(groupID) 
		textlabel.Text = player.Name .. " - " .. grouprank
	end)
end)

What specifically does not work about it?

Nothing shows, just “label” which is basic text. No errors in console

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local groupID = groupid -- it goes here
		local guiclone = script.BillboardGui:Clone() 
		guiclone.Parent = character.Head 
		
		local textlabel = guiclone.TextLabel
		local grouprank = player:GetRoleInGroup(groupID) 
		textlabel.Text = player.Name .. " - " .. grouprank
	end)
end)

This may be the problem; you don’t set the text to the CLONED gui.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.