Advertisement
Guest User

Purchase glitched assets

a guest
Mar 22nd, 2019
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Note: This works because these items have multiple products linked to them, and one of those products is still for sale.
  2. // Date: 2019-03-22
  3.  
  4. var productIds = [
  5. "51119013", // Slime Cape
  6. "51119443", // Slime Sunglasses
  7. "45038518", // Festive Winter Shades
  8. // Still trying to find the Product ID for "Dog Man Virtual Book", will update once found
  9. ]
  10.  
  11. productIds.forEach(function(productId) {
  12.     $.ajax("https://economy.roblox.com/v1/purchases/products/"+productId, {
  13.         method: "POST",
  14.         headers: {"X-CSRF-TOKEN": Roblox.XsrfToken.getToken()},
  15.         dataType: "json",
  16.         data: {
  17.             expectedCurrency: 0,
  18.             expectedPrice: 0,
  19.             expectedSellerId: 1
  20.         },
  21.         success: function(data) {
  22.             if (data.purchased) {
  23.                 console.log("Bought", data.assetName)
  24.             }
  25.         }
  26.     })
  27. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement