Why does this overhead gui fail?

Hey guys, I’ve been trying to make an overhead gui for everyone that is not the owner (the user id is the owners). The script keeps failing and I have no idea why. Heres the code.

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		if plr.UserId ~= 783051845 then
            local coolClone = game.ReplicatedStorage.PlayerTag:Clone()
			coolClone.Parent = char.Head
		end
	end)
end)

Any help is very appreciated! Thanks!

I fixed it, using the plr.Name function instead of plr.UserId!