--Unequip a title for a player

function functions.UnequipTitle(plr: Player)

	local plrStats = plr:WaitForChild("leaderstats")
	local plrEquippedTitle = plr.EquippedTitle

	if plrEquippedTitle.Value ~= "" then

		local char = plr.Character
		if char.HumanoidRootPart:FindFirstChild("TITLE BILLBOARD GUI") then
			char.HumanoidRootPart["TITLE BILLBOARD GUI"]:Destroy()
		end

		plrEquippedTitle.Value = ""
	end
end
