Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remhat(i,cb){
- $.get("http://m.roblox.com/items/"+i).success(function(r){
- var hold = $("<div>").html(r);
- var x = {rvt:hold.find("*[name='__RequestVerificationToken']").val(),uaid:hold.find("#userAssetId").val()};
- $.post("http://m.roblox.com/Catalog/WearOrRemoveItem",{wearing:false,userAssetId:x.uaid,__RequestVerificationToken:x.rvt});
- }).always(cb);
- }
- function wear(i,cb){
- $.get("http://m.roblox.com/items/"+i).success(function(r){
- var hold = $("<div>").html(r);
- var x = {rvt:hold.find("*[name='__RequestVerificationToken']").val(),uaid:hold.find("#userAssetId").val()};
- $.post("http://m.roblox.com/Catalog/WearOrRemoveItem",{wearing:true,userAssetId:x.uaid,__RequestVerificationToken:x.rvt});
- }).always(cb);
- }
- function multiwear(list,fh){
- var req = [];
- var d = 0;
- var d1 = function(){
- if(++d==req.length){
- Outfit.Get(_,function(x){
- console.log(x.Hat);
- if(x.Hat.length==req.length+2){
- console.log("Yes!");
- }else{
- console.log("No!",x.Hat);
- var xy = 0;
- var d2 = function(){
- if(++xy==x.Hat.length){
- var zf = 0;
- for(var n2 in fh){
- wear(fh[n2],function(){
- if(++zf==fh.length){
- multiwear(list,fh);
- }
- });
- }
- }
- };
- for(var n in x.Hat){
- remhat(x.Hat[n].AssetId,d2);
- }
- }
- });
- }
- };
- var cb = function(){
- if(req.length==list.length){
- console.log("Ready",req);
- for(var n in req){
- $.post("http://m.roblox.com/Catalog/WearOrRemoveItem",{wearing:true,userAssetId:req[n].uaid,__RequestVerificationToken:req[n].rvt}).success(function(){
- d1();
- });
- }
- }
- };
- for(var n in list){
- $.get("http://m.roblox.com/items/"+list[n]).success(function(r){
- var hold = $("<div>").html(r);
- req.push({rvt:hold.find("*[name='__RequestVerificationToken']").val(),uaid:hold.find("#userAssetId").val()});
- cb();
- });
- }
- }
- /*
- HOW TO USE (ROBLOX+ ONLY):
- Go to the chrome://extensions page
- Tick the "Developer mode" box in the top right corner
- Find ROBLOX+ and click "background page"
- Go to Console, and paste this entire bin
- Take off all your hats
- Find the hat ids of all the hats you want
- Paste 2 hat ids in the variables below (H1, and H2), and the rest in H3 seperated by commas
- */
- H1 = 21070012; /* REPLACE THE NUMBER WITH THE FIRST HAT ID */
- H2 = 172309919; /* REPLACE THE NUMBER WITH THE SECOND HAT ID */
- H3 = [215718515,136803077]; /* PUT AS MANY HAT IDS HERE AS YOU WANT, SEPARATED BY COMMA, THE MORE YOU PUT THE LONGER IT TAKES */
- multiwear(H3,[H1,H2]); /* DON'T TOUCH THIS LINE */
- /* Don't have ROBLOX+? Use V2, and do it manually: http://pastebin.com/WvLVHsAY */
- /* V2 VIDEO: https://www.youtube.com/watch?v=F-e_n7I6Jjk */
- // 1Topcop (WebGL3D/Java3D)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement