local tags = game:GetService("ServerStorage"):WaitForChild("Tags")
local NameTag = tags:WaitForChild("NameTag")
local RankTag = tags:WaitForChild("RankTag")

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		local Head = char.Head
		local lvl = player:WaitForChild("Level")
		local NT = NameTag:Clone()
		local NTLabel = NT.User
		
		local RT = RankTag:Clone()
		local RTLabel = RT.Rank
		
		--NameTag Overhead
		NT.Parent = Head
		NT.Adornee = Head
		
		--RankTag Overhead
		RT.Parent = Head
		RT.Adornee = Head
		
		NTLabel.Text = player.Name
		
		if lvl.Value == 1 then
			RTLabel.Text = "Level "..lvl.Value.." | Noob"
			print(lvl.Value)
		elseif lvl.Value == 2 then
			RTLabel.Text = "Level "..lvl.Value.." | Apprentice"
		elseif lvl.Value == 3 then
			RTLabel.Text = "Level "..lvl.Value.." | Journeyman"
		elseif lvl.Value == 5 then
			RTLabel.Text = "Level "..lvl.Value.." | Pathfinder"
		elseif lvl.Value == 10 then
			RTLabel.Text = "Level "..lvl.Value.." | Squire"
		elseif lvl.Value == 15 then
			RTLabel.Text = "Level "..lvl.Value.." | Adventurer"
		elseif lvl.Value == 20 then
			RTLabel.Text = "Level "..lvl.Value.." | Scout"
		end
	end)
end)