--Add a new title to a player's inventory

function functions.AddTitleToInventory(plr: Player, titleName: string)

	local plrStats = plr.leaderstats
	local plrTitles = plrStats.Titles

	if titles:FindFirstChild(titleName) and not plrTitles:FindFirstChild(titleName) then

		local titleValue = Instance.new("StringValue")
		titleValue.Name = titleName
		titleValue.Parent = plrTitles
	end
end
