Anyone got any idea why this name tag code will not work for some people

Hello,

So for some reason some people don’t get the above head UI. I am not sure why because from my knowledge there should be nothing affecting it. First I thought it was just mobile players but today I had someone on a laptop who also had the same issue so I am crossing out the idea it
was a mobile issue.

(there is also no errors. The only error I get is when someone tries to change one of the values on there above head UI saying that the UI does not exist)

Server script:

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		local HeadUI = game.ServerStorage.Overhead:Clone()
		HeadUI.Parent = Character.Head
		HeadUI:FindFirstChild("Name").Text = Player.Name
		HeadUI:FindFirstChild("Rank").Text = Player:GetRoleInGroup(6559630)
		Character:WaitForChild("Head"):WaitForChild("Overhead")
		DetailsAdd(Player)
	end)
end)

This definitely isn’t a reliable solution, but, for anyone who wants one, before you clone the HeadUI, try adding a wait(3) or something. I experienced an issue where people with different heads (other than the default one) didn’t get a nametag. I added a wait and it fixed the issue.