The title isn't working for admins or anyone and when i reset it become invisible

This is a script inside ServerScriptService

local pp = game.Players.LocalPlayer
local Admins = {
	8775800561; --Legend
	327115380; --Joseph
	1404950576; --Tempest
}

game.Players.PlayerAdded:Connect(function(player)
	wait(0.4)
	local clone = script.Rank:Clone()
	local Regiment = clone.Frame.Regiment
	clone.Parent = game.Workspace:WaitForChild(player.Name).Head
	clone.Frame.Name1.Text = '.'..player.Name..'.'
	clone.Frame.Rank.Text = "Head Admin"
	wait(0.2)
   for i,v in pairs(Admins) do
		if pp.UserId == v  then
			Regiment.Text = "ADMIN"
		end
	end
	
	
player.CharacterAdded:Connect(function()
		wait(0.4)
		local clone = script.Rank:Clone()
		local Regiment = clone.Frame.Regiment
		clone.Parent = game.Workspace:WaitForChild(player.Name).Head
		clone.Frame.Name1.Text = '.'..player.Name..'.'
		clone.Frame.Rank.Text = "Head Admin"
		wait(0.2)
		for i,v in pairs(Admins) do
			if pp.UserId == v  then
				Regiment.Text = "ADMIN"
			end
		end
	end)
end)