--Delete a title from a player's inventory

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

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

	if plrTitles:FindFirstChild(titleName) then

		plrTitles[titleName]:Destroy()
	end
end
