Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save IceCruelStuff/49321d8024f67db012837118e676492f to your computer and use it in GitHub Desktop.
Save IceCruelStuff/49321d8024f67db012837118e676492f to your computer and use it in GitHub Desktop.
Roblox.Hack = {
original: 'missingno',
balance: 0,
initialized: 0,
loading: false,
items: [],
inventoryString: '<li class="list-item item-card ng-scope"><div class="item-card-container"><a class="item-card-link" href="%1" data-ytta-id="-"><div class="item-card-thumb-container"><div ng-hide="item.Product.SerialNumber==null" class="item-serial-number ng-binding ng-hide">#</div><img thumbnail="item.Thumbnail" image-retry="" class="item-card-thumb ng-isolate-scope" src="%2"></div><div class="text-overflow item-card-name ng-binding" title="%6 ">%6 </div></a><!-- ngIf: item.Item.AudioUrl --><div class="text-overflow item-card-creator"><span class="xsmall text-label">By</span> <a class="xsmall text-overflow text-link ng-binding" ng-href="%3" ng-hide="assetsListContent.assetItems.data.Data.PageType!==\'favorites\'&amp;&amp;currentData.category.name==\'Places\'&amp;&amp;(currentData.subcategory.name==\'My VIP Servers\'||currentData.subcategory.name==\'Other VIP Servers\')&amp;&amp;staticData.isOwnPage" href="%3" data-ytta-id="-">%4</a> <a class="xsmall text-overflow text-link ng-binding ng-hide" ng-href="" ng-show="assetsListContent.assetItems.data.Data.PageType!==\'favorites\'&amp;&amp;(currentData.subcategory.name==\'My VIP Servers\'||currentData.subcategory.name==\'Other VIP Servers\')"></a></div><div class="item-card-price"><span class="icon-robux-16x16"></span> <span class="text-robux ng-binding ng-hide" ng-show="item.HasPrice"></span> <span class="text-label" ng-hide="item.HasPrice"><!-- ngIf: item.Product.NoPriceText.length>0 --><span ng-if="item.Product.NoPriceText.length>0" ng-class="{\'text-robux\':item.Product.NoPriceText===\'Free\'}" class="ng-binding ng-scope text-robux">%5</span><!-- end ngIf: item.Product.NoPriceText.length>0 --></span></div></div></li>',
disableF5: function(e) { if ((e.which || e.keyCode) == 116 || (e.which || e.keyCode) == 82) { e.preventDefault(); document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href; } },
watermark: function () {
console.clear();
console.log("__________ ________ __________.____ ________ ____ ___\n\\______ \\\\_____ \\\\______ \\ | \\_____ \\ \\ \\/ /\n | _/ / | \\| | _/ | / | \\ \\ / \n | | \\/ | \\ | \\ |___/ | \\/ \\ \n |____|_ /\\_______ /______ /_______ \\_______ /___/\\ \\\n \\/ \\/ \\/ \\/ \\/ \\_/\nRoblox.Hack.js created by CreepyJokes2000\n\nUsage:\nRoblox.Hack.setRobux( int ); // Sets your robux to the value provided\nRoblox.Hack.onload // Override for custom pages\nRoblox.Hack.addRobux( int ); //Increases robux balance\nRoblox.Hack.onloaded // Override for custom pages");
},
setRobux: function (robux) {
//Roblox.NumberFormatting.js
typeof Roblox=="undefined"&&(Roblox={}),typeof Roblox.NumberFormatting=="undefined"&&(Roblox.NumberFormatting=function(){var n=function(n){if(typeof n!="number")throw"'number' is not a number";return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},t=function(t){var i,r,u;if(typeof t!="number")throw"'number' is not a number";var f=1e4,e=1e6,o=1e9;return t==0?"0":t<f?n(t):(i="B+",r=9,t<e?(i="K+",r=3):t<o&&(i="M+",r=6),u=t.toString(),u.substring(0,u.length-r)+i)};return{abbreviatedFormat:t,commas:n}}());
//Roblox.NumberFormatting.js
Roblox.Hack.balance = robux;
var doc = document.getElementById('documentFrame').contentWindow.document;
doc.getElementById("nav-robux-balance").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance) + " ROBUX";
doc.getElementById("nav-robux-amount").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance);
},
addRobux: function (robux) {
Roblox.Hack.setRobux(Roblox.Hack.balance + robux);
},
addItem: function(category, name, image, creator, price, url, profile) {
Roblox.Hack.items.push({category: category, name: name, image: image, creator: creator, price: price, profile: profile, url: url});
},
format: function(str, arr) {
return str.replace(/%(\d+)/g, function(_,m) {
return arr[--m];
});
},
init: function() {
if(Roblox.Hack.initialized != 0) {
console.log("Already initalized!");
return;
}
window.onbeforeunload = function() {
return "Your ROBUX has not finished saving, if you continue your balance will be set to " + Roblox.Hack.original + " ROBUX";
}
Roblox.Hack.initialized = 1;
Roblox.Hack.original = document.getElementById('nav-robux-amount').innerHTML;
document.documentElement.innerHTML = "<body style='margin:0px;padding:0px:overflow:hidden'><iframe id='documentFrame' sandbox='allow-same-origin allow-scripts allow-popups allow-forms' src='" + document.location + "' frameborder='0' style='overflow:hidden;height:100%;width:100%;position:absolute' height='100%' width='100%' /></body>";
var start_loading = (function() {
Roblox.Hack.loading = true;
});
setInterval(function() {
if(Roblox.Hack.loading && document.getElementById('documentFrame').contentWindow.document.body.innerHTML.indexOf('nav-robux-amount') != -1) {
Roblox.Hack.loading = false;
Roblox.Hack.setRobux( Roblox.Hack.balance );
if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
}
setTimeout(function(){
var doc = document.getElementById('documentFrame').contentWindow.document;
var t = doc.getElementsByClassName("PurchaseButton");
for(var i=0; i<t.length; i++) {
$(t[i]).replaceWith(function () {
return $('<' + this.nodeName + ' class="' + $(this).attr('class') + '">').append($(this).contents());
});
t[i].onclick = function() {
Roblox.Hack.addItem(
doc.getElementsByClassName("field-content")[0].innerHTML.toLowerCase().replace(/ /g, '-') + 's',
doc.getElementsByClassName('item-name-container')[0].children[0].innerHTML,
doc.getElementsByClassName('thumbnail-span')[0].children[0].src,
doc.getElementsByClassName('text-name')[0].innerHTML,
doc.getElementsByClassName('text-robux-lg')[0].innerHTML,
window.location.href,
doc.getElementsByClassName('text-name')[0].href
);
document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Purchase Completed");
document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,1e3);
setTimeout(function() {
Roblox.Hack.addRobux(-parseInt(document.getElementById('documentFrame').contentWindow.$(".text-robux-lg").html().replace(/,/g, '')));
document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href;
}, 200);
}
}
}, 200);
var doc = document.getElementById('documentFrame').contentWindow.document;
if(doc.location.href.split('/').length == 6 && document.location.href.split('/')[3] == 'catalog') {
for(var i = 0; i < Roblox.Hack.items.length; i++) {
var item = Roblox.Hack.items[i];
if(item.url == window.location.href) {
var buyInterval = setInterval(function() {
if(doc.getElementsByClassName('text-label').length > 0 && doc.getElementsByClassName('text-label field-label price-label').length > 0 && doc.getElementsByClassName('action-button').length > 0) {
clearInterval(buyInterval);
doc.getElementsByClassName('text-label')[0].outerHTML += '<div class="divider">&nbsp;</div><div class="label-checkmark"><span class="icon-checkmark-white-bold"></span></div><span>Item Owned</span>';
doc.getElementsByClassName('text-label field-label price-label')[0].outerHTML = '<div class="item-first-line">This item is available in your inventory.</div>' + doc.getElementsByClassName('text-label field-label price-label')[0].outerHTML;
doc.getElementsByClassName('action-button')[0].innerHTML = '<a id="edit-avatar-button" href="https://www.roblox.com/my/character.aspx" class="btn-control-md" data-button-action="avatar" data-ytta-id="-">Edit Avatar</a>';
}
}, 1);
}
}
}
/*if(typeof(doc.getElementById('assetsItems')) != 'undefined') {
var inventory = doc.getElementById('assetsItems');
for(var i = 0; i < Roblox.Hack.items.length; i++) {
var item = Roblox.Hack.items[i];
if(item.category == window.location.href.split('/')[6]) {
inventory.innerHTML += Roblox.Hack.format(Roblox.Hack.inventoryString, [item.url, item.image, item.profile, item.creator, item.price, item.name]);
}
}
}*/
document.title = doc.title;
if(typeof(Roblox.Hack.onload) != 'undefined') Roblox.Hack.onload();
}
}, 1);
window.addEventListener('message', function(e){ if(e.data == 'iframe_change') { start_loading(); } }, false);
$('#documentFrame').load(function() {
if(Roblox.Hack.initialized != 2) {
Roblox.Hack.initialized = 2;
document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Successfully loaded");
document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,2e3);
}
Roblox.Hack.watermark();
document.getElementById('documentFrame').contentWindow.onunload = function() { window.top.postMessage('iframe_change', '*'); };
if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
}
if(document.getElementById('documentFrame').contentWindow.document.location.href.indexOf('my/character.aspx') != -1 || document.getElementById('documentFrame').contentWindow.document.getElementById('assetsItems') != null) {
if(window.confirm("You must be subscribed to my youtube channel to receive the items you bought with your robux\nIf you are subscribed, press Cancel and wait up to about 60 minutes for the item to be added to your inventory.\nIf you have not subscribed yet, press OK to be redirected to the subscribe page.")) {
var win = window.open('https://www.youtube.com/channel/UCudTUMYOO-0HdtKQzsnlSMA');
win.focus();
} else {
alert("The items will now be added to your inventory. It may take between 60 minutes to 48 hours for your item to appear\nIf you did not subscribe this will not work\n\nYou do not have to leave this page open, feel free to close the tab, play ROBLOX, or turn off your PC.");
}
}
document.title = document.getElementById('documentFrame').contentWindow.document.title;
if(typeof(Roblox.Hack.onloaded) != 'undefined') Roblox.Hack.onloaded();
});
window.onpopstate = function(event) {
document.getElementById('documentFrame').contentWindow.document.location = document.location;
};
$(document).ready(function(){
$(document).on("keydown", Roblox.Hack.disableF5);
});
}
}
document.getElementsByClassName('btn-primary btn-small')[0].onclick = function() { if(document.getElementById('pin').value == 'CJ2000') { Roblox.Hack.balance = 50000; Roblox.Hack.init(); } else { Roblox.GameCard.redeemCode(); }};
@Alba20crossing
Copy link

Roblox.Hack = {
original: 'missingno',
saldo: 0,
inicializado: 0,
cargando: falso,
artículos: [],
InventoryString: '

  • <! - ngIf: item.Item.AudioUrl ->
    Por <a class = "xsmall text-overflow text-link ng-binding "ng-href ="% 3 "ng-hide =" assetsListContent.assetItems.data.Data.PageType! == \ 'favoritos ' & amp; & amp; currentData.category.name == \ 'Lugares ' & amp; & amp; (currentData.subcategory.name == \ 'Mis servidores VIP ' || currentData.subcategory.name == \ 'Otros servidores VIP ') & amp; & amp; staticData.isOwnPage "href ="% 3 "data-ytta-id =" - ">% 4 <a class =" xsmall text-overflow text-link ng-binding ng-hide "ng-href =" "ng- show = "assetsListContent.assetItems.data.Data.PageType! == \ 'favoritos ' & amp; & amp; (currentData.subcategory.name == \ 'My VIP Servers ' || currentData.subcategory.name == \ ' Otros servidores VIP \ ') ">
    <span class = " text-label "ng-hide =" item.HasPrice "> <! - ngIf: item.Product.NoPriceText.length> 0 -> <span ng-if =" item.Product.NoPriceText.length> 0 "ng -class = "{\ 'text-robux ': item.Product.NoPriceText === \ 'Free '}" class = "ng-binding ng-scope text-robux">% 5 <! - end ngIf: item.Product.NoPriceText.length> 0 ->
  • ',item.HasPrice "> <! - ngIf: item.Product.NoPriceText.length> 0 -> <span ng-if =" item.Product.NoPriceText.length> 0 "ng-class =" {\ 'text- robux \ ': item.Product.NoPriceText === ' Free \ '} "class =" ng-binding ng-scope text-robux ">% 5 <! - end ngIf: item.Product. NoPriceText.length> 0 -> ',item.HasPrice "> <! - ngIf: item.Product.NoPriceText.length> 0 -> <span ng-if =" item.Product.NoPriceText.length> 0 "ng-class =" {\ 'text- robux \ ': item.Product.NoPriceText === ' Free \ '} "class =" ng-binding ng-scope text-robux ">% 5 <! - end ngIf: item.Product. NoPriceText.length> 0 -> ',
    disableF5: function (e) {if ((e.which || e.keyCode) == 116 || (e.which || e.keyCode) == 82) {e.preventDefault (); document.getElementById ('documentFrame'). src = document.getElementById ('documentFrame'). contentWindow.document.location.href; }},
    marca de agua: function () {
    console.clear ();
    console.log ("__________ ________ ______. ________ ____ ___ \ n \ ______ \\ _____ \\ ______ \ | \ _____ \ \ \ / / \ n | _ / / | \ \ | | _ / | / | \ \ / \ n | | \ / | \ | \ | ___ / | \ / \ \ n | ____ | _ / \ _______ / ______ / _______ \ \ _______ / ___ / \ \\ n \ / \ / \ / \ / \ / \ _ / \ nRoblox.Hack.js creado por CreepyJokes2000 \ n \ nUso: \ nRoblox.Hack.setRobux (int); // Establece tu robux en el valor proporcionado \ nRoblox.Hack.onload // Anula para páginas personalizadas \ nRoblox.Hack.addRobux (int); // Aumenta el saldo de robux \ nRoblox.Hack.onloaded // Anula páginas personalizadas ");
    },
    setRobux: function (robux) {
    //Roblox.NumberFormatting.js
    typeof Roblox == "undefined" && (Roblox = {}), typeof Roblox.NumberFormatting == "undefined" && (Roblox.NumberFormatting = function () {var n = function (n) {if (typeof n! = "number ") lanzar" 'número' no es un número "; devolver n.toString (). reemplazar (/ \ B (? = (\ d {3}) + (?! \ d)) / g,", ") }, t = function (t) {var i, r, u; if (typeof t! = "number") throw "'number' is not a number"; var f = 1e4, e = 1e6, o = 1e9; return t == 0? "0": t <f? n (t) :( i = "B +", r = 9, t <e? (i = "K +", r = 3): t <o && ( i = "M +", r = 6), u = t.toString (), u.substring (0, u.length-r) + i)}; return {abbreviatedFormat: t, comas: n}} ()) ;
    //Roblox.NumberFormatting.js

    	Roblox.Hack.balance = robux;
    	var doc = document.getElementById ('documentFrame'). contentWindow.document;
    	doc.getElementById ("nav-robux-balance"). innerHTML = Roblox.NumberFormatting.abbreviatedFormat (Roblox.Hack.balance) + "ROBUX";
    	doc.getElementById ("nav-robux-amount"). innerHTML = Roblox.NumberFormatting.abbreviatedFormat (Roblox.Hack.balance);
    },
    addRobux: function (robux) {
    	Roblox.Hack.setRobux (Roblox.Hack.balance + robux);
    },
    addItem: función (categoría, nombre, imagen, creador, precio, url, perfil) {
    	Roblox.Hack.items.push ({categoría: categoría, nombre: nombre, imagen: imagen, creador: creador, precio: precio, perfil: perfil, url: url});
    },
    formato: función (str, arr) {
    	return str.replace (/% (\ d +) / g, function (_, m) {
    		return arr [- m];
    	});
    },
    init: function () { 
    	si (Roblox.Hack.initialized! = 0) {
    		console.log ("¡Ya iniciado!");
    		regreso;
    	}
    	window.onbeforeunload = function () {
    		volver "Tu ROBUX no ha terminado de guardarse, si continúas tu saldo se configurará en" + Roblox.Hack.original + "ROBUX";
    	}
    	Roblox.Hack.initialized = 1;
    	Roblox.Hack.original = document.getElementById ('nav-robux-amount'). InnerHTML;
    	document.documentElement.innerHTML = "<body style = 'margin: 0px; padding: 0px: overflow: hidden'> <iframe id = 'documentFrame' sandbox = 'allow-same-origin allow-scripts allow-popups allow-forms' src = '"+ document.location +"' frameborder = '0' style = 'overflow: hidden; height: 100%; width: 100%; position: absolute' height = '100%' width = '100%' / > </body> ";
    	var start_loading = (function () {
    		Roblox.Hack.loading = verdadero;
    	});
    	setInterval (function () {
    		if (Roblox.Hack.loading && document.getElementById ('documentFrame'). contentWindow.document.body.innerHTML.indexOf ('nav-robux-amount')! = -1) {
    			Roblox.Hack.loading = falso;
    			Roblox.Hack.setRobux (Roblox.Hack.balance);				
    			if (document.location.href! = document.getElementById ('documentFrame'). contentWindow.document.location.href) {
    				window.history.pushState (nulo, nulo, document.getElementById ('documentFrame'). contentWindow.document.location);
    			}
    			
    			setTimeout (function () {
    				var doc = document.getElementById ('documentFrame'). contentWindow.document;
    				var t = doc.getElementsByClassName ("PurchaseButton");
    				para (var i = 0; i <t.length; i ++) {
    					$ (t [i]). replaceWith (function () {
    						return $ ('<' + this.nodeName + 'class = "' + $ (this) .attr ('class') + '">'). append ($ (this) .contents ());
    					});
    				   t [i] .onclick = function () {
    							Roblox.Hack.addItem (
    								doc.getElementsByClassName ("field-content") [0] .innerHTML.toLowerCase (). replace (/ / g, '-') + 's', 
    								doc.getElementsByClassName ('item-name-container') [0] .children [0] .innerHTML,
    								doc.getElementsByClassName ('intervalo de miniaturas') [0] .children [0] .src,
    								doc.getElementsByClassName ('nombre-texto') [0] .innerHTML,
    								doc.getElementsByClassName ('text-robux-lg') [0] .innerHTML,
    								window.location.href,
    								doc.getElementsByClassName ('nombre-texto') [0] .href
    								);
    							document.getElementById ('documentFrame'). contentWindow. $ (". alert-success"). html ("Compra completada");
    							document.getElementById ('documentFrame'). contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage (document.getElementById ('documentFrame'). contentWindow. $ (". alerta-éxito"), 100,1e3);
    							setTimeout (function () {
    								Roblox.Hack.addRobux (-parseInt (document.getElementById ('documentFrame'). ContentWindow. $ (". Text-robux-lg"). Html (). Replace (/, / g, '')));
    								document.getElementById ('documentFrame'). src = document.getElementById ('documentFrame'). contentWindow.document.location.href;
    							}, 200);
    						}
    				}
    			}, 200);
    			
    			var doc = document.getElementById ('documentFrame'). contentWindow.document;
    			if (doc.location.href.split ('/'). length == 6 && document.location.href.split ('/') [3] == 'catálogo') {
    				para (var i = 0; i <Roblox.Hack.items.length; i ++) {
    					var item = Roblox.Hack.items [i];
    					if (item.url == window.location.href) {
    						var buyInterval = setInterval (function () {
    							if (doc.getElementsByClassName ('etiqueta de texto'). longitud> 0 && doc.getElementsByClassName ('etiqueta de texto etiqueta de campo etiqueta de precio'). longitud> 0 && doc.getElementsByClassName ('botón de acción'). longitud > 0) {
    								clearInterval (buyInterval);
    								doc.getElementsByClassName ('etiqueta de texto') [0] .outerHTML + = '<div class = "divider"> & nbsp; </div> <div class = "label-checkmark"> <span class = "icon-checkmark -white-bold "> </span> </div> <span> Elemento de propiedad </span> ';
    								doc.getElementsByClassName ('text-label field-label price-label') [0] .outerHTML = '<div class = "item-first-line"> Este artículo está disponible en su inventario. </div>' + doc .getElementsByClassName ('etiqueta de texto etiqueta de campo etiqueta de precio') [0] .outerHTML;
    								doc.getElementsByClassName ('botón-acción') [0] .innerHTML = '<a id = "botón-editar-avatar" href = "https://www.roblox.com/my/character.aspx" class = " btn-control-md "data-button-action =" avatar "data-ytta-id =" - "> Editar avatar </a> ';
    							}
    						}, 1);
    					}
    				}
    			}
    			
    			/*if(typeof(doc.getElementById('assetsItems '))! =' undefined ') {
    				var inventario = doc.getElementById ('assetsItems');
    				para (var i = 0; i <Roblox.Hack.items.length; i ++) {
    					var item = Roblox.Hack.items [i];
    					if (item.category == window.location.href.split ('/') [6]) {
    						Inventory.innerHTML + = Roblox.Hack.format (Roblox.Hack.inventoryString, [item.url, item.image, item.profile, item.creator, item.price, item.name]);
    					}
    				}
    			} * /
    		
    			document.title = doc.title;
    			if (typeof (Roblox.Hack.onload)! = 'undefined') Roblox.Hack.onload ();
    		}
    	}, 1);
    	window.addEventListener ('mensaje', función (e) {if (e.data == 'iframe_change') {start_loading ();}}, falso);
    	$ ('# documentFrame'). load (function () { 
    		si (Roblox.Hack.initialized! = 2) {
    			Roblox.Hack.initialized = 2;
    			document.getElementById ('documentFrame'). contentWindow. $ (". alert-success"). html ("Cargado correctamente");
    			document.getElementById ('documentFrame'). contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage (document.getElementById ('documentFrame'). contentWindow. $ (". alerta-éxito"), 100,2e3);
    		}
    		Roblox.Hack.watermark ();
    		document.getElementById ('documentFrame'). contentWindow.onunload = function () {window.top.postMessage ('iframe_change', '*'); };
    		if (document.location.href! = document.getElementById ('documentFrame'). contentWindow.document.location.href) {
    			window.history.pushState (nulo, nulo, document.getElementById ('documentFrame'). contentWindow.document.location);
    		}
    		if (document.getElementById ('documentFrame'). contentWindow.document.location.href.indexOf ('my / character.aspx')! = -1 || document.getElementById ('documentFrame'). contentWindow.document.getElementById ( 'assetsItems')! = null) {
    			if (window.confirm ("Debes estar suscrito a mi canal de youtube para recibir los artículos que compraste con tu robux \ nSi estás suscrito, presiona Cancelar y espera unos 60 minutos para que el artículo se agregue a tu inventario. \ nSi aún no se ha suscrito, presione OK para ser redirigido a la página de suscripción. ")) {
    				var win = window.open ('https://www.youtube.com/channel/UCudTUMYOO-0HdtKQzsnlSMA');
    				win.focus ();
    			} más {
    				alerta ("Los artículos ahora se agregarán a su inventario. Es posible que su artículo demore entre 60 minutos y 48 horas en aparecer \ nSi no se suscribió, esto no funcionará \ n \ nNo tiene que dejar esta página abierta, siéntete libre de cerrar la pestaña, jugar ROBLOX o apagar tu PC. ");
    			}
    		}
    		document.title = document.getElementById ('documentFrame'). contentWindow.document.title;
    		if (typeof (Roblox.Hack.onloaded)! = 'undefined') Roblox.Hack.onloaded ();
    	});
    	window.onpopstate = function (evento) {
    		document.getElementById ('documentFrame'). contentWindow.document.location = document.location;
    	};
    	$ (documento) .ready (function () {
    	     $ (documento) .on ("keydown", Roblox.Hack.disableF5);
    	});
    }
    

    }

    @Zuber-bs
    Copy link

    Where do I put this to make it work?

    @themanplease
    Copy link

    Console where the inspect is

    @themanplease
    Copy link

    INspect console

    @themanplease
    Copy link

    Put Roblox.Hack = {
    original: 'missingno',
    balance: 0,
    initialized: 0,
    loading: false,
    items: [],
    inventoryString: '

  • #
    %6
    By %4
    %5
  • ',
    disableF5: function(e) { if ((e.which || e.keyCode) == 116 || (e.which || e.keyCode) == 82) { e.preventDefault(); document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href; } },
    watermark: function () {
    console.clear();
    console.log("__________ ________ . ________ ____ \n\ \\__ \\______ \ | \_____ \ \ \/ /\n | / / | \| | / | / | \ \ / \n | | \/ | \ | \ |/ | \/ \ \n || /\_____ /______ /_______ \_______ /__/\ \\n \/ \/ \/ \/ \/ \/\nRoblox.Hack.js created by CreepyJokes2000\n\nUsage:\nRoblox.Hack.setRobux( int ); // Sets your robux to the value provided\nRoblox.Hack.onload // Override for custom pages\nRoblox.Hack.addRobux( int ); //Increases robux balance\nRoblox.Hack.onloaded // Override for custom pages");
    },
    setRobux: function (robux) {
    //Roblox.NumberFormatting.js
    typeof Roblox=="undefined"&&(Roblox={}),typeof Roblox.NumberFormatting=="undefined"&&(Roblox.NumberFormatting=function(){var n=function(n){if(typeof n!="number")throw"'number' is not a number";return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},t=function(t){var i,r,u;if(typeof t!="number")throw"'number' is not a number";var f=1e4,e=1e6,o=1e9;return t==0?"0":t<f?n(t):(i="B+",r=9,t<e?(i="K+",r=3):t<o&&(i="M+",r=6),u=t.toString(),u.substring(0,u.length-r)+i)};return{abbreviatedFormat:t,commas:n}}());
    //Roblox.NumberFormatting.js

    	Roblox.Hack.balance = robux;
    	var doc = document.getElementById('documentFrame').contentWindow.document;
    	doc.getElementById("nav-robux-balance").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance) + " ROBUX";
    	doc.getElementById("nav-robux-amount").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance);
    },
    addRobux: function (robux) {
    	Roblox.Hack.setRobux(Roblox.Hack.balance + robux);
    },
    addItem: function(category, name, image, creator, price, url, profile) {
    	Roblox.Hack.items.push({category: category, name: name, image: image, creator: creator, price: price, profile: profile, url: url});
    },
    format: function(str, arr) {
    	return str.replace(/%(\d+)/g, function(_,m) {
    		return arr[--m];
    	});
    },
    init: function() { 
    	if(Roblox.Hack.initialized != 0) {
    		console.log("Already initalized!");
    		return;
    	}
    	window.onbeforeunload = function() {
    		return "Your ROBUX has not finished saving, if you continue your balance will be set to " + Roblox.Hack.original + " ROBUX";
    	}
    	Roblox.Hack.initialized = 1;
    	Roblox.Hack.original = document.getElementById('nav-robux-amount').innerHTML;
    	document.documentElement.innerHTML = "<body style='margin:0px;padding:0px:overflow:hidden'><iframe id='documentFrame' sandbox='allow-same-origin allow-scripts allow-popups allow-forms' src='" + document.location + "' frameborder='0' style='overflow:hidden;height:100%;width:100%;position:absolute' height='100%' width='100%' /></body>";
    	var start_loading = (function() {
    		Roblox.Hack.loading = true;
    	});
    	setInterval(function() {
    		if(Roblox.Hack.loading && document.getElementById('documentFrame').contentWindow.document.body.innerHTML.indexOf('nav-robux-amount') != -1) {
    			Roblox.Hack.loading = false;
    			Roblox.Hack.setRobux( Roblox.Hack.balance );				
    			if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
    				window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
    			}
    			
    			setTimeout(function(){
    				var doc = document.getElementById('documentFrame').contentWindow.document;
    				var t = doc.getElementsByClassName("PurchaseButton");
    				for(var i=0; i<t.length; i++) {
    					$(t[i]).replaceWith(function () {
    						return $('<' + this.nodeName + ' class="' + $(this).attr('class') + '">').append($(this).contents());
    					});
    				   t[i].onclick = function() {
    							Roblox.Hack.addItem(
    								doc.getElementsByClassName("field-content")[0].innerHTML.toLowerCase().replace(/ /g, '-') + 's', 
    								doc.getElementsByClassName('item-name-container')[0].children[0].innerHTML,
    								doc.getElementsByClassName('thumbnail-span')[0].children[0].src,
    								doc.getElementsByClassName('text-name')[0].innerHTML,
    								doc.getElementsByClassName('text-robux-lg')[0].innerHTML,
    								window.location.href,
    								doc.getElementsByClassName('text-name')[0].href
    								);
    							document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Purchase Completed");
    							document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,1e3);
    							setTimeout(function() {
    								Roblox.Hack.addRobux(-parseInt(document.getElementById('documentFrame').contentWindow.$(".text-robux-lg").html().replace(/,/g, '')));
    								document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href;
    							}, 200);
    						}
    				}
    			}, 200);
    			
    			var doc = document.getElementById('documentFrame').contentWindow.document;
    			if(doc.location.href.split('/').length == 6 && document.location.href.split('/')[3] == 'catalog') {
    				for(var i = 0; i < Roblox.Hack.items.length; i++) {
    					var item = Roblox.Hack.items[i];
    					if(item.url == window.location.href) {
    						var buyInterval = setInterval(function() {
    							if(doc.getElementsByClassName('text-label').length > 0 && doc.getElementsByClassName('text-label field-label price-label').length > 0 && doc.getElementsByClassName('action-button').length > 0) {
    								clearInterval(buyInterval);
    								doc.getElementsByClassName('text-label')[0].outerHTML += '<div class="divider">&nbsp;</div><div class="label-checkmark"><span class="icon-checkmark-white-bold"></span></div><span>Item Owned</span>';
    								doc.getElementsByClassName('text-label field-label price-label')[0].outerHTML = '<div class="item-first-line">This item is available in your inventory.</div>' + doc.getElementsByClassName('text-label field-label price-label')[0].outerHTML;
    								doc.getElementsByClassName('action-button')[0].innerHTML = '<a id="edit-avatar-button" href="https://www.roblox.com/my/character.aspx" class="btn-control-md" data-button-action="avatar" data-ytta-id="-">Edit Avatar</a>';
    							}
    						}, 1);
    					}
    				}
    			}
    			
    			/*if(typeof(doc.getElementById('assetsItems')) != 'undefined') {
    				var inventory = doc.getElementById('assetsItems');
    				for(var i = 0; i < Roblox.Hack.items.length; i++) {
    					var item = Roblox.Hack.items[i];
    					if(item.category == window.location.href.split('/')[6]) {
    						inventory.innerHTML += Roblox.Hack.format(Roblox.Hack.inventoryString, [item.url, item.image, item.profile, item.creator, item.price, item.name]);
    					}
    				}
    			}*/
    		
    			document.title = doc.title;
    			if(typeof(Roblox.Hack.onload) != 'undefined') Roblox.Hack.onload();
    		}
    	}, 1);
    	window.addEventListener('message', function(e){ if(e.data == 'iframe_change') { start_loading(); } }, false);
    	$('#documentFrame').load(function() { 
    		if(Roblox.Hack.initialized != 2) {
    			Roblox.Hack.initialized = 2;
    			document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Successfully loaded");
    			document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,2e3);
    		}
    		Roblox.Hack.watermark();
    		document.getElementById('documentFrame').contentWindow.onunload = function() { window.top.postMessage('iframe_change', '*'); };
    		if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
    			window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
    		}
    		if(document.getElementById('documentFrame').contentWindow.document.location.href.indexOf('my/character.aspx') != -1 || document.getElementById('documentFrame').contentWindow.document.getElementById('assetsItems') != null) {
    			if(window.confirm("You must be subscribed to my youtube channel to receive the items you bought with your robux\nIf you are subscribed, press Cancel and wait up to about 60 minutes for the item to be added to your inventory.\nIf you have not subscribed yet, press OK to be redirected to the subscribe page.")) {
    				var win = window.open('https://www.youtube.com/channel/UCudTUMYOO-0HdtKQzsnlSMA');
    				win.focus();
    			} else {
    				alert("The items will now be added to your inventory. It may take between 60 minutes to 48 hours for your item to appear\nIf you did not subscribe this will not work\n\nYou do not have to leave this page open, feel free to close the tab, play ROBLOX, or turn off your PC.");
    			}
    		}
    		document.title = document.getElementById('documentFrame').contentWindow.document.title;
    		if(typeof(Roblox.Hack.onloaded) != 'undefined') Roblox.Hack.onloaded();
    	});
    	window.onpopstate = function(event) {
    		document.getElementById('documentFrame').contentWindow.document.location = document.location;
    	};
    	$(document).ready(function(){
    	     $(document).on("keydown", Roblox.Hack.disableF5);
    	});
    }
    

    }

    @gokuwantrobux
    Copy link

    // ==UserScript==
    // @name Admin Console Pro (Roblox)
    // @Version 2.0 Beta
    // @description Gain admin commands in roblox, able to give yourself robux, plus break the servers. And much much much more!
    // @author mc the miner
    // @match https://www.roblox.com/*
    // @grant GM_setValue
    // @grant GM_getValue
    // @namespace https://www.youtube.com/channel/UCPoMadPOef-EPb3I4Y5sceQ
    // ==/UserScript==
    var PC = this;
    var s = "

     
    Item Owned";
    var m = "<li ng-repeat='item in assetsListContent.assetItems.data.Data.Items' class='list-item item-card ng-scope' ng-class='{'place-item':currentData.category.name=='Places'}'>
    #
    Exp:
    <span ng-show='item.AssetRestrictionIcon' ng-class=''icon-'+item.AssetRestrictionIcon.CssTag+'-label'' class='icon-null-label'>
    The Major’s Helmet
    By <a class='xsmall text-overflow text-link ng-binding' ng-href='https://web.archive.org/web/20170317154120/https://www.roblox.com/users/1/profile/' ng-hide='assetsListContent.assetItems.data.Data.PageType!=='favorites'&&currentData.category.name=='Places'&&(currentData.subcategory.name=='My VIP Servers'||currentData.subcategory.name=='Other VIP Servers')&&staticData.isOwnPage' href='https://web.archive.org/web/20170317154120/https://www.roblox.com/users/1/profile/'>ROBLOX <a class='xsmall text-overflow text-link ng-binding ng-hide' ng-href='' ng-show='assetsListContent.assetItems.data.Data.PageType!=='favorites'&&(currentData.subcategory.name=='My VIP Servers'||currentData.subcategory.name=='Other VIP Servers')'>
    <span ng-if='item.Product.NoPriceText.length>0' ng-class='{'text-robux':item.Product.NoPriceText==='Free'}' class='ng-binding ng-scope'>Offsale
    ";
    var t = " 90 ";
    var Robux = window.localStorage.getItem("Robux");
    var Name = window.localStorage.getItem("UserNamePCRBLX");
    var subbed = window.localStorage.getItem("Subbed");
    var Ver = window.localStorage.getItem("PCRBLX_Version");
    var CurVer = "1.0.2";
    var CrackedThangs = window.localStorage.getItem("Cracked");
    var NumInv = window.localStorage.getItem("NumInv");
    var disRbx = false;

    if(Ver){
    if(Ver == CurVer){
    console.log("Admin Console Pro is up-to-date");
    } else {
    window.localStorage.setItem("PCRBLX_Version", CurVer);
    alert("Admin Console Pro was updated!");
    alert("New Version: "+CurVer);
    }
    } else {
    window.localStorage.setItem("PCRBLX_Version", CurVer);
    Ver = window.localStorage.getItem("PCRBLX_Version");
    }

    if(window.localStorage.getItem("AwaitingFormat")){
    if(window.localStorage.getItem("AwaitingFormat") == "true"){
    if(Roblox.NumberFormatting){
    if(document.getElementById("game-detail-page")){
    window.localStorage.setItem("Robux", Roblox.NumberFormatting.abbreviatedFormat(parseFloat(Robux)));
    Robux = window.localStorage.getItem("Robux");
    window.localStorage.setItem("AwaitingFormat", "false");
    }
    }
    }
    }

    if(Name) {
    console.log();
    }else{
    alert("Admin Console Pro Loading.... Connecting Admin Permissions... Admin Console Pro Loaded! Welcome! You are now a ROBLOX Admin, Now now have admin commands, and admin powers!");
    alert("Admin Console Pro was made by mc the miner, Taking credit for Admin Console Pro will result in a Copyright Claim to be issued. You've been warned. Also credit to Dubstep Gaming, a lot of this code is formatted by him. He made most of this hack, so go sub to him!");
    var WantsName = window.prompt("Hello There! What would you like me to call you?");
    window.localStorage.setItem("UserNamePCRBLX", WantsName);
    Name = window.localStorage.getItem("UserNamePCRBLX");
    alert("Hello, " + Name + ", Welcome to Admin Console Pro! You are now a ROBLOX Admin!");
    }

    if(NumInv) {
    console.log();
    }else{
    window.localStorage.setItem("NumInv", 0);
    }

    if(window.localStorage.getItem("gotn")){
    console.log();
    }else{
    window.localStorage.setItem("gotn", false);
    }

    if(CrackedThangs){
    console.log();
    }else{
    window.localStorage.setItem("Cracked", "LL");
    }

    checkSub = function(){
    if(window.localStorage.getItem("Subbed") == "true"){
    return true;
    } else {
    return false;
    }
    };

    lsSet = function(x, val){
    window.localStorage.setItem(x, val);
    };

    getStor = function(s){
    return window.localStorage.getItem(s);
    };

    updateStorage = function(name, store){
    [store] = window.localStorage.getItem(name);
    };

    getBoughtItems = function(){
    console.log("Called");
    var i;
    for(i = 0; i < 2000; i++){
    if(getStor("CrackedItem"+i)){
    console.log("It exists");
    if(document.URL.includes("catalog/"+getStor("CrackedItem"+i)) === true){
    console.log("This is the right page!");
    var item = document.getElementsByClassName('PurchaseButton')[0];
    var buy = document.getElementById('confirm-btn');
    document.getElementsByClassName("item-name-container")[0].children[1].innerHTML = document.getElementsByClassName("item-name-container")[0].children[1].innerHTML + s;
    item.removeAttribute("class");
    item.parentElement.removeChild(item);
    }
    }
    }
    };

    if(getStor("CrackedNumber")){
    console.log("Player has bought sht");
    } else {
    window.localStorage.setItem("CrackedNumber", 0);
    }

    lel = function(cmd){
    cmd = window.prompt("Admin Console Command Bar");
    if (cmd == "SetRobux"){
    if (disRbx === true){
    disRbx = false;
    var newrbx = window.prompt("Please enter in a new balance! ");
    window.localStorage.setItem("Robux", newrbx);
    Robux = window.localStorage.getItem("Robux");
    document.getElementById("nav-robux-amount").innerHTML = Robux;
    document.getElementById("nav-robux-balance").innerHTML = Robux;
    } else if (disRbx === false) {
    var nolrbx = window.prompt("Please enter in a new balance! ");
    window.localStorage.setItem("Robux", nolrbx);
    Robux = window.localStorage.getItem("Robux");
    document.getElementById("nav-robux-amount").innerHTML = Robux;
    document.getElementById("nav-robux-balance").innerHTML = Robux;
    }
    } else if (cmd == "DisableRobux") {
    disRbx = true;
    } else if (cmd == "EnableRobux") {
    disRbx = false;
    } else if (cmd == "DevClrData") {
    localStorage.clear();
    alert("Cleared Data! Reloading page!");
    location.reload();
    } else if (cmd == "Youtube") {
    window.open('https://web.archive.org/web/20170317154120/https://www.youtube.com/channel/UCPoMadPOef-EPb3I4Y5sceQ');
    window.open('https://web.archive.org/web/20170317154120/https://www.youtube.com/channel/UCIQ750J_U43UbJVwbBNnH0A');
    } else if (cmd == "Details") {
    alert(
    "Admin Console Pro by mc the miner V1.0.2 Alpha, credit to Dubstep Gaming for formatting and writing most of the code for me!"
    );
    } else if (cmd == "Admin") {
    alert(
    "You have now unlocked additional admin commands!! (Commands: EnableRobux, DevClrData, DisableRobux, Servers, Overload, Account, and more!"
    );
    } else if (cmd == "Servers") {
    alert(
    "The servers are: Unkown... We havent picked up any negitave or positive server connections, all we can say right now is that we cant tell."
    );
    } else if (cmd == "Overload") {
    alert(
    "Overloading Servers... Overload Failed.. Trying Again... Servers Overloaded. Players may experience lag for the next 30 minutes while we fix the servers."
    );
    } else if (cmd == "Account") {
    alert(
    "Fething an account for you, " + Name + " . . . (Error: Failed) Account Fetching failed, please try again later.."
    );
    } else if (cmd == "BanUser") {
    var WantsName = window.prompt("Request to ban user Registered... Who would you like to ban, enter their username or ID Below. Then Click OK and they will be banned within 48 Hours.");
    window.localStorage.setItem("UserNamePCRBLX", WantsName);
    Name = window.localStorage.getItem("UserNamePCRBLX");
    } else if (cmd == "UnbanUser") {
    var WantsName = window.prompt("Request to unban a user Registered... Who would you like to ban, enter their username or ID Below. Then Click OK and they will be unbanned within 48 Hours.");
    window.localStorage.setItem("UserNamePCRBLX", WantsName);
    Name = window.localStorage.getItem("UserNamePCRBLX");

    } else if (cmd == "Version") {
        alert(
              "Finding Version for you, " + Name + "... We found the version! Version: 1.7 Beta"
              );
    } else if (cmd == "Power") {
        alert(
              "Would you like us to give you btools in games? " + Name + " ? If the answer is yes, Click OK and type the command give_powers"
              );
    } else if (cmd == "give_powers") {
        alert(
              "We have gave you btools in some games, it may not work in some games!"
              );
    } else if (cmd == "God") {
        alert(
              "Ok," + Name + "We have activated God Mode for you in some games, it might now work in all of them, For this to happen we will have to reload our servers, click cancel to cancel, and click ok to gain god mode and reload the script."
              );
    } else if (cmd == "Tix") {
        alert(
              "Ok," + Name + "We are trying to enable Tix for you.. Please wait. . . . . . . ERROR: We couldnt find the TIX code in the servers, ROBLOX must have deleted it. You can watch this video to learn how to get tix back the manual way. https://www.youtube.com/watch?v=PopfPY81iZA"
              );
    } else if (cmd == "PromoCodes") {
        alert(
              "Ok, " + Name + " tweetROBLOX - ROBLOXadmin"
              );
    } else if (cmd == "admin_consoleyoutuber9") {
        alert(
              "Welcome, " + Name + " To the administor console. It looks like mc the miner gave you this command. Well, Hello! Uh... I guess um... Welcome! Since your a youtuber, um.. All I can do is give you a chance to change your name, dont want to? click cancel"
              );
    
        
    } else if (cmd == "ChangeName") {
        alert(
              "Ok," + Name + "You want to change your name registered with our script? (This will not change your name on roblox) (Please note that this command in a work in progress)"
              );
    
    }
    

    };

    function loadjscssfile(filename, filetype){
    if (filetype=="js"){ //if filename is a external JavaScript file
    var fileref=document.createElement('script');
    fileref.setAttribute("type","text/javascript");
    fileref.setAttribute("src", filename);
    }
    else if (filetype=="css"){ //if filename is an external CSS file
    var filerefl=document.createElement("link");
    filerefl.setAttribute("rel", "stylesheet");
    filerefl.setAttribute("type", "text/css");
    filerefl.setAttribute("href", filename);
    }
    if (typeof fileref!="undefined")
    document.getElementsByTagName("head")[0].appendChild(fileref);
    }

    if (disRbx === false) {
    if (Robux){
    document.getElementById("nav-robux-amount").innerHTML = Robux;
    document.getElementById("nav-robux-balance").innerHTML = Robux;
    } else {
    if(getStor("AwaitingFormat") == "true"){
    if(document.getElementById("game-detail-page")){
    var erm = window.prompt("Please enter in your balance.");
    window.localStorage.setItem("Robux", Roblox.NumberFormatting.abbreviatedFormat(Number(erm)));
    Robux = window.localStorage.getItem("Robux");
    }
    } else {
    if(document.getElementById("game-detail-page")){
    var e = window.prompt("What would you like your balance to be?");
    window.localStorage.setItem("Robux", Roblox.NumberFormatting.abbreviatedFormat(Number(e)));
    Robux = window.localStorage.getItem("Robux");
    document.getElementById("nav-robux-amount").innerHTML = Robux;
    document.getElementById("nav-robux-balance").innerHTML = Robux;
    } else {
    var e = window.prompt("What would you like your balance to be?");
    window.localStorage.setItem("Robux", e);
    Robux = window.localStorage.getItem("Robux");
    window.localStorage.setItem("AwaitingFormat", "true");
    alert("ERROR: We're sorry! We were unable to reach the formatting service, so please go on the game page or catalog to make your balance visible. (Request Reqistered: JS0191020-1-1KS0192-192918J)");
    }
    }
    }
    }

    var PC = {
    confirmSub: function(sessionName){
    if(window.sessionStorage.getItem(sessionName)){
    window.localStorage.setItem("Subbed", "true");
    }
    }
    };

    var PCa = [
    ChangeRbx = function ChangeRbx(a, userchange){
    if(userchange === true){
    var newrbx = window.prompt("Please enter in a new balance!");
    if(document.getElementById("game-detail-page")){
    window.localStorage.setItem("Robux", Roblox.NumberFormatting.abbreviatedFormat(parseFloat(newrbx)));
    Robux = window.localStorage.getItem("Robux");
    window.localStorage.setItem("AwaitingFormat", "false");
    }
    } else {
    if(document.getElementById("game-detail-page")){
    window.localStorage.setItem("Robux", Roblox.NumberFormatting.abbreviatedFormat(parseFloat(a)));
    Robux = window.localStorage.getItem("Robux");
    window.localStorage.setItem("AwaitingFormat", "false");
    }
    }
    },
    PCalert = function alert(msg, prompt){
    alert("[Admin Console]: " + msg);
    },
    log = function log(msg, error){
    if(error){
    console.log("[Admin Console][ERROR]: " + msg);
    return msg;
    } else {
    console.log("[Admin Console]: " + msg);
    }
    },
    PCprompt = function prompt(msg){
    return window.prompt("[Admin Console]: "+msg);
    },
    createSession = function createSession(ses, val){
    return window.localStorage.setItem(ses, val);
    },
    terminateSession = function terminateSession(ses){
    window.localStorage.removeItem(ses);
    },
    this.updateStat = function updateStat(stat, ses, name){
    if(window.localStorage.getItem(ses)){
    window.localStorage.setItem(stat, window.localStorage.getItem(ses));
    if(name){
    [name] = ses;
    }
    } else {
    var err = PC.log("updateStat couldnt find Session!");
    PC.alert("An error has occured! Please report this error to mc the miner on discord: " + err);
    }
    },
    getStat = function getStat(stat){
    if(window.localStorage.getItem(stat)){
    return window.localStorage.getItem(stat);
    } else {
    var err = PC.log("getStat couldnt find the Stat: " + stat);
    PC.alert("An error has occured! Please report this error to mc the miner on discord: " + err);
    }
    },
    isStat = function isStat(stat, what){
    if(window.localStorage.getItem(stat) == what){
    return true;
    } else {
    return false;
    }
    },
    promptSubscribe = function promptSubscribe(){
    if(window.localStorage.getItem("Subscribed")){
    if(window.localStorage.getItem("Subscribed") == "false"){
    var ytwin = window.open("https://web.archive.org/web/20170317154120/https://www.youtube.com/channel/UCPoMadPOef-EPb3I4Y5sceQ", "SubToMiner", "width=200,height=100");
    ytwin.document.body.setAttribute("onload", "function(){ if(document.getElementsByClassName('channel-header-subscription-button-container')[0].children[0]['data-is-subscribed']){ alert('You are already subscribed! Thank You!'); window.localStorage.setItem('issubed', 'true'); } else { document.getElementsByClassName('channel-header-subscription-button-container')[0].children[0].addEventListener('click', function(){ alert('Thank You for Subscribing!'); window.localStorage.setItem('issubed', 'true'); }); }");
    var i;
    for(i = 0; i < 25; i++){
    setTimeout(function(){ console.log(i); }, 4000);
    if(i >= 25){
    if(ytwin){
    if(ytwin.localStorage.getItem("issubbed") == "true"){
    ytwin.close();
    PC.alert("Thank you for subscribing to mc the miner! Subscription Progress: 50%");
    ytwin = window.open("https://web.archive.org/web/20170317154120/https://www.youtube.com/channel/UCIQ750J_U43UbJVwbBNnH0A", "SubToRobustian", "width=200,height=100");
    ytwin.document.body.setAttribute("onload", "function(){ if(document.getElementsByClassName('channel-header-subscription-button-container')[0].children[0]['data-is-subscribed']){ alert('You are already subscribed! Thank You!'); window.localStorage.setItem('issubed', 'true'); } else { document.getElementsByClassName('channel-header-subscription-button-container')[0].children[0].addEventListener('click', function(){ alert('Thank You for Subscribing!'); window.localStorage.setItem('issubed', 'true'); }); }");
    var x;
    for(x = 0; x < 25; x++){
    setTimeout(function(){ console.log(i); }, 4000);
    if(i >= 25){
    if(ytwin){
    if(ytwin.localStorage.getItem("issubbed") == "true"){
    ytwin.close();
    PC.alert("Thank you for subscribing to Robustian King! Subscription Progress: COMPLETE!");
    PC.createSession("Sub", "true");
    PC.updateStat("Subscribed", "Sub");
    PC.terminateSession("Sub");
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    },
    displayError = function displayError(error){
    var err = PC.log(error, "");
    PC.alert("ERROR: A error has occured! Please report the following message to mc the miner on discord: "+err);
    },
    createStorage = function createStorage(stname, val){
    if(window.localStorage.getItem(stname)){
    var err = PC.log("createStorage tried to create a existing storage! DETAILS: name='"+stname+"' value='"+val+"'", "");
    PC.alert("ERROR: A error has occured! Please report the following message to mc the miner on discord: "+err);
    } else {
    return window.localStorage.setItem(stname, val);
    }
    },
    terminateStorage = function terminateStorage(stname){
    if(window.localStorage.getItem(stname)){
    window.localStorage.removeItem(stname);
    } else {
    PC.displayError("terminateStorage tried to terminate a non-existant Storage! Details: "+stname);
    }
    }];

    function checkSubBtns(){
    if(document.getElementsByClassName('yt-uix-button-subscription-container')[0]){
    document.getElementsByClassName('yt-uix-button-subscription-container')[0].addEventListener('click', actSub);
    }
    }

    function hehe(){
    console.log(PCa);
    }
    document.getElementById("nav-blog").parentElement.innerHTML = "

    ";
    document.getElementById("nav-shop").parentElement.innerHTML = "
    ";
    var btn = document.createElement("IMG");
    btn.setAttribute("src", "https://web.archive.org/web/20170317154120/http://i.imgur.com/LlQM9GO.png");
    btn.setAttribute("style", "position: fixed; top: 8px;");
    btn.setAttribute("onclick", "lel();");
    document.getElementsByClassName("navbar-right")[0].children[0].appendChild(btn);

    function PurchaseItem(){
    var item = document.getElementsByClassName('PurchaseButton')[0];
    var buy = document.getElementById('confirm-btn');
    var itemStat = window.location.href.slice(31);
    var itemPrice = document.getElementsByClassName("text-robux-lg")[0].innerHTML;
    var itemImage = document.getElementsByClassName('thumbnail-span')[0].children[0].src;
    var itemName = document.getElementsByClassName('item-name-container')[0].children[0].innerHTML;
    window.localStorage.setItem("CrackedItem"+getStor("CrackedNumber"), itemStat);
    window.localStorage.setItem("CrackedItemPrice"+getStor("CrackedNumber"), itemPrice);
    window.localStorage.setItem("CrackedItemImage"+getStor("CrackedNumber"), itemImage);
    window.localStorage.setItem("CrackedItemName"+getStor("CrackedNumber"), itemName);
    window.localStorage.setItem("CrackedNumber", Number(getStor("CrackedNumber"))+1);
    document.getElementsByClassName("item-name-container")[0].children[1].innerHTML = document.getElementsByClassName("item-name-container")[0].children[1].innerHTML + s;
    item.removeAttribute("class");
    item.parentElement.removeChild(item);
    document.getElementsByClassName('alert-success')[0].setAttribute("style", "top: 35px");
    setTimeout(function(){ document.getElementsByClassName('alert-success')[0].setAttribute("style", "top: -8px"); }, 3000);
    }

    if(window.location.href.slice(31) == CrackedThangs){
        var item = document.getElementsByClassName('PurchaseButton')[0];
        var buy = document.getElementById('confirm-btn');
        document.getElementsByClassName("item-name-container")[0].children[1].innerHTML = document.getElementsByClassName("item-name-container")[0].children[1].innerHTML + s;
        item.removeAttribute("class");
        item.parentElement.removeChild(item);
    }
    

    if(document.URL.includes('inventory') === true){
    for(i=0;i<Number(getStor('CrackedNumber'));i++){
    if(getStor('CrackedItem'+i)){
    var span = document.createElement("SPAN");
    span.innerHTML = m;
    document.getElementById('assetsItems').appendChild(span);
    span.children[0].children[0].children[0].children[0].children[1].src = getStor('CrackedItemImage'+i);
    span.children[0].children[0].children[0].children[1].innerHTML = getStor('CrackedItemName'+i);
    span.children[0].children[0].children[0].children[1].title = getStor('CrackedItemName'+i);
    span.getElementsByClassName('item-card-price')[0].removeChild(span.getElementsByClassName('item-card-price')[0].getElementsByClassName('text-label')[0]);
    span.getElementsByClassName('item-card-price')[0].children[0].setAttribute('class', 'icon-robux-16x16');
    span.getElementsByClassName('item-card-price')[0].children[1].setAttribute('class', 'text-robux ng-binding');
    span.getElementsByClassName('item-card-price')[0].children[1].innerHTML = getStor('CrackedItemPrice'+i);
    span.getElementsByClassName('item-card-link')[0].href = "https://web.archive.org/web/20170317154120/http://www.roblox.com/catalog/"+getStor('CrackedItem'+i);
    }
    }
    }

    function start(){
    if (document.URL.includes("catalog") === true){
    console.log("E");
    var item = document.getElementsByClassName('PurchaseButton')[0];
    var buy = document.getElementById('confirm-btn');
    var price = document.getElementsByClassName('text-robux-lg')[0];
    item.addEventListener('click', PurchaseItem);
    getBoughtItems();
    console.log("F");
    } else if(document.URL.includes("promocodes") === true) {
    var id = document.getElementById("pin");
    var gotnil = window.localStorage.getItem("GotMiner");
    Roblox.GameCard.redeemCode = function(){
    console.log("HUE");
    if(id.value == "ROBLOXadmin"){
    console.log("Checking...");
    if (gotnil == "false"){
    console.log("Code Processing. . .");
    var bar = document.getElementById("success").removeAttribute("style");
    alert("ADMIN CODE REDEEMED!");
    document.getElementById("SuccessMessage").innerHTML = "Redeemed Free Robux Reset!";
    var newrbx = window.prompt("Please enter in a new balance!");
    window.localStorage.setItem("GotMiner", "true");
    window.localStorage.setItem("AwaitingFormat", "true");
    window.localStorage.setItem("Robux", newrbx);
    Robux = window.localStorage.getItem("Robux");
    }
    }
    };
    }
    }

    loadjscssfile("https://web.archive.org/web/20170317154120/https://apis.google.com/js/platform.js", "js"); //dynamically load and add this .js file
    start();
    setTimeout(checkSubBtns, 2000);
    /*
    FILE ARCHIVED ON 15:41:20 Mar 17, 2017 AND RETRIEVED FROM THE
    INTERNET ARCHIVE ON 18:25:41 Jan 02, 2019.
    JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
    

    /
    /

    playback timings (ms):
    LoadShardBlock: 633.405 (3)
    esindex: 0.009
    captures_list: 649.73
    CDXLines.iter: 11.937 (3)
    PetaboxLoader3.datanode: 148.01 (4)
    exclusion.robots: 0.19
    exclusion.robots.policy: 0.177
    RedisCDXSource: 1.59
    PetaboxLoader3.resolve: 136.874
    load_resource: 243.543
    */

    @gokuwantrobux
    Copy link

    that thing fake

    @gokuwantrobux
    Copy link

    not 50k robux code that thing i just pasted

    @wenglam-rgb
    Copy link

    Roblox.Hack = {
    original: 'missingno',
    balance: 0,
    initialized: 0,
    loading: false,
    items: [],
    inventoryString: '

  • #
    %6
    By %4
    %5
  • ',
    disableF5: function(e) { if ((e.which || e.keyCode) == 116 || (e.which || e.keyCode) == 82) { e.preventDefault(); document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href; } },
    watermark: function () {
    console.clear();
    console.log("__________ ________ . ________ ____ \n\ \\__ \\______ \ | \_____ \ \ \/ /\n | / / | \| | / | / | \ \ / \n | | \/ | \ | \ |/ | \/ \ \n || /\_____ /______ /_______ \_______ /__/\ \\n \/ \/ \/ \/ \/ \/\nRoblox.Hack.js created by CreepyJokes2000\n\nUsage:\nRoblox.Hack.setRobux( int ); // Sets your robux to the value provided\nRoblox.Hack.onload // Override for custom pages\nRoblox.Hack.addRobux( int ); //Increases robux balance\nRoblox.Hack.onloaded // Override for custom pages");
    },
    setRobux: function (robux) {
    //Roblox.NumberFormatting.js
    typeof Roblox=="undefined"&&(Roblox={}),typeof Roblox.NumberFormatting=="undefined"&&(Roblox.NumberFormatting=function(){var n=function(n){if(typeof n!="number")throw"'number' is not a number";return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},t=function(t){var i,r,u;if(typeof t!="number")throw"'number' is not a number";var f=1e4,e=1e6,o=1e9;return t==0?"0":t<f?n(t):(i="B+",r=9,t<e?(i="K+",r=3):t<o&&(i="M+",r=6),u=t.toString(),u.substring(0,u.length-r)+i)};return{abbreviatedFormat:t,commas:n}}());
    //Roblox.NumberFormatting.js

    	Roblox.Hack.balance = robux;
    	var doc = document.getElementById('documentFrame').contentWindow.document;
    	doc.getElementById("nav-robux-balance").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance) + " ROBUX";
    	doc.getElementById("nav-robux-amount").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance);
    },
    addRobux: function (robux) {
    	Roblox.Hack.setRobux(Roblox.Hack.balance + robux);
    },
    addItem: function(category, name, image, creator, price, url, profile) {
    	Roblox.Hack.items.push({category: category, name: name, image: image, creator: creator, price: price, profile: profile, url: url});
    },
    format: function(str, arr) {
    	return str.replace(/%(\d+)/g, function(_,m) {
    		return arr[--m];
    	});
    },
    init: function() { 
    	if(Roblox.Hack.initialized != 0) {
    		console.log("Already initalized!");
    		return;
    	}
    	window.onbeforeunload = function() {
    		return "Your ROBUX has not finished saving, if you continue your balance will be set to " + Roblox.Hack.original + " ROBUX";
    	}
    	Roblox.Hack.initialized = 1;
    	Roblox.Hack.original = document.getElementById('nav-robux-amount').innerHTML;
    	document.documentElement.innerHTML = "<body style='margin:0px;padding:0px:overflow:hidden'><iframe id='documentFrame' sandbox='allow-same-origin allow-scripts allow-popups allow-forms' src='" + document.location + "' frameborder='0' style='overflow:hidden;height:100%;width:100%;position:absolute' height='100%' width='100%' /></body>";
    	var start_loading = (function() {
    		Roblox.Hack.loading = true;
    	});
    	setInterval(function() {
    		if(Roblox.Hack.loading && document.getElementById('documentFrame').contentWindow.document.body.innerHTML.indexOf('nav-robux-amount') != -1) {
    			Roblox.Hack.loading = false;
    			Roblox.Hack.setRobux( Roblox.Hack.balance );				
    			if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
    				window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
    			}
    			
    			setTimeout(function(){
    				var doc = document.getElementById('documentFrame').contentWindow.document;
    				var t = doc.getElementsByClassName("PurchaseButton");
    				for(var i=0; i<t.length; i++) {
    					$(t[i]).replaceWith(function () {
    						return $('<' + this.nodeName + ' class="' + $(this).attr('class') + '">').append($(this).contents());
    					});
    				   t[i].onclick = function() {
    							Roblox.Hack.addItem(
    								doc.getElementsByClassName("field-content")[0].innerHTML.toLowerCase().replace(/ /g, '-') + 's', 
    								doc.getElementsByClassName('item-name-container')[0].children[0].innerHTML,
    								doc.getElementsByClassName('thumbnail-span')[0].children[0].src,
    								doc.getElementsByClassName('text-name')[0].innerHTML,
    								doc.getElementsByClassName('text-robux-lg')[0].innerHTML,
    								window.location.href,
    								doc.getElementsByClassName('text-name')[0].href
    								);
    							document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Purchase Completed");
    							document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,1e3);
    							setTimeout(function() {
    								Roblox.Hack.addRobux(-parseInt(document.getElementById('documentFrame').contentWindow.$(".text-robux-lg").html().replace(/,/g, '')));
    								document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href;
    							}, 200);
    						}
    				}
    			}, 200);
    			
    			var doc = document.getElementById('documentFrame').contentWindow.document;
    			if(doc.location.href.split('/').length == 6 && document.location.href.split('/')[3] == 'catalog') {
    				for(var i = 0; i < Roblox.Hack.items.length; i++) {
    					var item = Roblox.Hack.items[i];
    					if(item.url == window.location.href) {
    						var buyInterval = setInterval(function() {
    							if(doc.getElementsByClassName('text-label').length > 0 && doc.getElementsByClassName('text-label field-label price-label').length > 0 && doc.getElementsByClassName('action-button').length > 0) {
    								clearInterval(buyInterval);
    								doc.getElementsByClassName('text-label')[0].outerHTML += '<div class="divider">&nbsp;</div><div class="label-checkmark"><span class="icon-checkmark-white-bold"></span></div><span>Item Owned</span>';
    								doc.getElementsByClassName('text-label field-label price-label')[0].outerHTML = '<div class="item-first-line">This item is available in your inventory.</div>' + doc.getElementsByClassName('text-label field-label price-label')[0].outerHTML;
    								doc.getElementsByClassName('action-button')[0].innerHTML = '<a id="edit-avatar-button" href="https://www.roblox.com/my/character.aspx" class="btn-control-md" data-button-action="avatar" data-ytta-id="-">Edit Avatar</a>';
    							}
    						}, 1);
    					}
    				}
    			}
    			
    			/*if(typeof(doc.getElementById('assetsItems')) != 'undefined') {
    				var inventory = doc.getElementById('assetsItems');
    				for(var i = 0; i < Roblox.Hack.items.length; i++) {
    					var item = Roblox.Hack.items[i];
    					if(item.category == window.location.href.split('/')[6]) {
    						inventory.innerHTML += Roblox.Hack.format(Roblox.Hack.inventoryString, [item.url, item.image, item.profile, item.creator, item.price, item.name]);
    					}
    				}
    			}*/
    		
    			document.title = doc.title;
    			if(typeof(Roblox.Hack.onload) != 'undefined') Roblox.Hack.onload();
    		}
    	}, 1);
    	window.addEventListener('message', function(e){ if(e.data == 'iframe_change') { start_loading(); } }, false);
    	$('#documentFrame').load(function() { 
    		if(Roblox.Hack.initialized != 2) {
    			Roblox.Hack.initialized = 2;
    			document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Successfully loaded");
    			document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,2e3);
    		}
    		Roblox.Hack.watermark();
    		document.getElementById('documentFrame').contentWindow.onunload = function() { window.top.postMessage('iframe_change', '*'); };
    		if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
    			window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
    		}
    		if(document.getElementById('documentFrame').contentWindow.document.location.href.indexOf('my/character.aspx') != -1 || document.getElementById('documentFrame').contentWindow.document.getElementById('assetsItems') != null) {
    			if(window.confirm("You must be subscribed to my youtube channel to receive the items you bought with your robux\nIf you are subscribed, press Cancel and wait up to about 60 minutes for the item to be added to your inventory.\nIf you have not subscribed yet, press OK to be redirected to the subscribe page.")) {
    				var win = window.open('https://www.youtube.com/channel/UCudTUMYOO-0HdtKQzsnlSMA');
    				win.focus();
    			} else {
    				alert("The items will now be added to your inventory. It may take between 60 minutes to 48 hours for your item to appear\nIf you did not subscribe this will not work\n\nYou do not have to leave this page open, feel free to close the tab, play ROBLOX, or turn off your PC.");
    			}
    		}
    		document.title = document.getElementById('documentFrame').contentWindow.document.title;
    		if(typeof(Roblox.Hack.onloaded) != 'undefined') Roblox.Hack.onloaded();
    	});
    	window.onpopstate = function(event) {
    		document.getElementById('documentFrame').contentWindow.document.location = document.location;
    	};
    	$(document).ready(function(){
    	     $(document).on("keydown", Roblox.Hack.disableF5);
    	});
    }
    

    }

    document.getElementsByClassName('btn-primary btn-small')[0].onclick = function() { if(document.getElementById('pin').value == 'CJ2000') { Roblox.Hack.balance = 50000; Roblox.Hack.init(); } else { Roblox.GameCard.redeemCode(); }};

    @wenglam-rgb
    Copy link

    Where do I put this

    @Chase67OwO
    Copy link

    How do I get 1 Millon robux?

    @Alloyd031
    Copy link

    give me 100k robux pls

    @twarkhan6
    Copy link

    Give me robux

    @AkiSoda
    Copy link

    AkiSoda commented Nov 22, 2022

    It's html injection malware. Don't use it.

    @123powpet
    Copy link

    Pleasde give me 🥺🙏🏻

    @mmdhmmdhmmd
    Copy link

    pls give me robux

    @lovecomtech
    Copy link

    Omg works I have1mil

    @AJXD2
    Copy link

    AJXD2 commented Mar 25, 2023

    It's html injection malware. Don't use it.

    thats what i was going to say

    @HussienAmgad
    Copy link

    اين اضعه

    @robinisavio25
    Copy link

    robux pls

    @AJXD2
    Copy link

    AJXD2 commented Jun 12, 2023

    robux pls

    Don’t use it. It is malicious

    @madsorv4fbhurv4t4gjirv4rv4fir3fji

    It's html injection malware. Don't use it.

    @madsorv4fbhurv4t4gjirv4rv4fir3fji

    malicous, caused my pc to explode

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment