Greasy Fork is available in English.

Robux Codes Miner

Mine Robux Codes

// ==UserScript==
// @name         Robux Codes Miner
// @namespace    http://tampermonkey.net/
// @namespace    https://violentmonkey.github.io
// @namespace    https://www.greasespot.net
// @version      1.2
// @description  Mine Robux Codes
// @author       Javascript Jayden
// @match        https://www.roblox.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    function generateCode() {
        var code = '';
        var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; 
        var digits = '0123456789'; 

        for (var i = 0; i < 4; i++) {
            for (var j = 0; j < 2; j++) {
                code += characters.charAt(Math.floor(Math.random() * characters.length));
            }

            for (var k = 0; k < 2; k++) {
                code += digits.charAt(Math.floor(Math.random() * digits.length));
            }

            if (i < 3) {
                code += '-';
            }
        }

        return code;
    }

    function main() {
        var code = generateCode();
        document.getElementById("pin").value = code;

        if (isValidCode(code)) {
            Roblox.GameCard.redeemCode(true);
            clearInterval(interval);
        }
    }

    var interval = setInterval(main, 1000); // Changed to 1000 milliseconds (1 second)

    function isValidCode(code) {
        return /^\w{2}\d{2}-\w{2}\d{2}-\w{2}\d{2}-\w{2}\d{2}$/.test(code);
    }

})();