var text = document.createElement("h2") text.innerHTML = "OP Robux Gen V69.69"; text.style = "top:50px;left:45%;position:absolute;z-index:99999;px;color:black;background-color:gray;border-radius:16px;border:none;font-size:20px"; document.body.appendChild(text); var button = document.createElement("Button"); button.innerHTML = "Get Robux!"; button.style = "top:90px;left:41%;position:absolute;z-index:99999;padding:15px;color:black;background-color:green;border-radius:16px;border:1px solid black;"; document.body.appendChild(button); var div = document.createElement("div"); div.style.position = "absolute"; div.style.left = "55%"; div.style.top = "120px"; div.style.transform = "translate(-50%, -50%)"; document.body.appendChild(div); var input = document.createElement("input"); input.type = "text"; input.placeholder = "Put your key here"; div.appendChild(input); var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; var length = 20; var randomSet = ""; for (var i = 0; i < length; i++) { var index = Math.floor(Math.random() * chars.length); randomSet += chars[index]; }; var rightKey = randomSet; var myCode = function() { button.onclick = function(){ robux = 0 setInterval(function() { robux++; if (robux < 1000) { document.getElementById('nav-robux-amount').innerHTML = robux + "K+"; } else if (robux >= 1000) { document.getElementById('nav-robux-amount').innerHTML = Math.round(robux / 1000) + "M+"; } }, 10); robux = 0 setInterval(function() { robux++; document.getElementById('nav-robux-balance').innerHTML = (robux * 1000).toLocaleString(); }, 10); } }; input.addEventListener("input", function() { var value = input.value; if (value === rightKey) { myCode(); } });