BuyCasesEvents.Case0.OnServerEvent:Connect(function(P,z,k,B)if B==true then if P.DataFolder.Points.Value>=z then P.DataFolder.Points.Value-=z print(z)P.Inventory.AdminCase.Value+=1 else MessagesEvents.NotEnoughPoints:FireClient(P)end elseif B==false then if P.DataFolder.Gems.Value>=k then P.DataFolder.Gems.Value-=k print(k)P.Inventory.AdminCase.Value+=1 else MessagesEvents.NotEnoughPoints:FireClient(P)end end end)


BuyCasesEvents.Case0.OnServerEvent:Connect(function(player, PricePoints, PriceGems, PointsBuy)
	if PointsBuy == true then
		if player.DataFolder.Points.Value >= PricePoints then
			player.DataFolder.Points.Value -= PricePoints
			print(PricePoints)
			--Transaction Completed
			player.Inventory.AdminCase.Value += 1 --Choose the case
		else
			MessagesEvents.NotEnoughPoints:FireClient(player)
		end
	elseif PointsBuy == false then
		if player.DataFolder.Gems.Value >= PriceGems then
			player.DataFolder.Gems.Value -= PriceGems
			print(PriceGems)
			--Transaction Completed
			player.Inventory.AdminCase.Value += 1 --Case
		else
			MessagesEvents.NotEnoughPoints:FireClient(player)
		end
	
	end
end)
