--Equip a title for a player

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

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

	if plrTitles:FindFirstChild(titleName) then

		functions.UnequipTitle(plr)

		plrEquippedTitle.Value = titleName

		functions.CreateBillboardGui(plr)
	end
end
