Advertisement
cat568

Untitled

Jun 22nd, 2018
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function remhat(i,cb){
  2. $.get("http://m.roblox.com/items/"+i).success(function(r){
  3. var hold = $("<div>").html(r);
  4. var x = {rvt:hold.find("*[name='__RequestVerificationToken']").val(),uaid:hold.find("#userAssetId").val()};
  5. $.post("http://m.roblox.com/Catalog/WearOrRemoveItem",{wearing:false,userAssetId:x.uaid,__RequestVerificationToken:x.rvt});
  6. }).always(cb);
  7. }
  8. function wear(i,cb){
  9. $.get("http://m.roblox.com/items/"+i).success(function(r){
  10. var hold = $("<div>").html(r);
  11. var x = {rvt:hold.find("*[name='__RequestVerificationToken']").val(),uaid:hold.find("#userAssetId").val()};
  12. $.post("http://m.roblox.com/Catalog/WearOrRemoveItem",{wearing:true,userAssetId:x.uaid,__RequestVerificationToken:x.rvt});
  13. }).always(cb);
  14. }
  15.  
  16. function multiwear(list,fh){
  17. var req = [];
  18. var d = 0;
  19. var d1 = function(){
  20. if(++d==req.length){
  21. Outfit.Get(_,function(x){
  22. console.log(x.Hat);
  23. if(x.Hat.length==req.length+2){
  24. console.log("Yes!");
  25. }else{
  26. console.log("No!",x.Hat);
  27. var xy = 0;
  28. var d2 = function(){
  29. if(++xy==x.Hat.length){
  30. var zf = 0;
  31. for(var n2 in fh){
  32. wear(fh[n2],function(){
  33. if(++zf==fh.length){
  34. multiwear(list,fh);
  35. }
  36. });
  37. }
  38. }
  39. };
  40. for(var n in x.Hat){
  41. remhat(x.Hat[n].AssetId,d2);
  42. }
  43. }
  44. });
  45. }
  46. };
  47. var cb = function(){
  48. if(req.length==list.length){
  49. console.log("Ready",req);
  50. for(var n in req){
  51. $.post("http://m.roblox.com/Catalog/WearOrRemoveItem",{wearing:true,userAssetId:req[n].uaid,__RequestVerificationToken:req[n].rvt}).success(function(){
  52. d1();
  53. });
  54. }
  55. }
  56. };
  57. for(var n in list){
  58. $.get("http://m.roblox.com/items/"+list[n]).success(function(r){
  59. var hold = $("<div>").html(r);
  60. req.push({rvt:hold.find("*[name='__RequestVerificationToken']").val(),uaid:hold.find("#userAssetId").val()});
  61. cb();
  62. });
  63. }
  64. }
  65.  
  66.  
  67. /*
  68. HOW TO USE (ROBLOX+ ONLY):
  69. Go to the chrome://extensions page
  70. Tick the "Developer mode" box in the top right corner
  71. Find ROBLOX+ and click "background page"
  72. Go to Console, and paste this entire bin
  73. Take off all your hats
  74. Find the hat ids of all the hats you want
  75. Paste 2 hat ids in the variables below (H1, and H2), and the rest in H3 seperated by commas
  76. */
  77.  
  78. H1 = 21070012; /* REPLACE THE NUMBER WITH THE FIRST HAT ID */
  79. H2 = 172309919; /* REPLACE THE NUMBER WITH THE SECOND HAT ID */
  80. H3 = [215718515,136803077]; /* PUT AS MANY HAT IDS HERE AS YOU WANT, SEPARATED BY COMMA, THE MORE YOU PUT THE LONGER IT TAKES */
  81. multiwear(H3,[H1,H2]); /* DON'T TOUCH THIS LINE */
  82.  
  83.  
  84. /* Don't have ROBLOX+? Use V2, and do it manually: http://pastebin.com/WvLVHsAY */
  85. /* V2 VIDEO: https://www.youtube.com/watch?v=F-e_n7I6Jjk */
  86.  
  87.  
  88. // 1Topcop (WebGL3D/Java3D)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement