Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Join here: http://www.v3rmillion.net/member.php?action=register&referrer=3224
- /* For this to work go to http://api.roblox.com/ and paste this in */
- var Username = prompt("Enter names to check", "Separate each name with a space").split(" ");
- var WorkingNames = ["Created By Scripted on Vermillion.net"];
- var check = "";
- var i =0;
- function SendData(){
- var xhr = ("XMLHttpRequest" in window) ? new XMLHttpRequest() : new ActiveXObject("Msxml3.XMLHTTP");
- xhr.open("GET", 'http://api.roblox.com/users/get-by-username?username=' + Username[i], true);
- xhr.onreadystatechange = function() {
- if (xhr.readyState === 4) {
- var serverResponse = xhr.responseText;
- if (serverResponse == "{\"success\":false,\"errorMessage\":\"User not found\"}") {
- console.log("The username " + Username[i-1] + " is not taken"); //i used this for debugging
- WorkingNames.push(Username[i-1]);
- }else{
- console.log("Name was taken");
- }
- }
- };
- xhr.send(null);
- }
- function LogNames(){
- for (var i = 0; i < WorkingNames.length; i++) {
- check = check + "\r\n "+ WorkingNames[i];
- check = check.replace("undefined","");
- }
- }
- function Loop(){
- setTimeout(function(){
- if(i < Username.length){
- SendData();
- i++;
- Loop();
- }else{
- LogNames();
- console.log("Your name snipes are:\r\n " +check + "\r\n WARNING: THIS BOT IS NOT CASE SENSITIVE SO SOME RESULTS MAY HAVE BEEN REMOVED FROM THE NAME SNIPE LIST.");
- console.log("Please refresh the page, and paste the bot in to try again.");
- }
- },1000); // Change the speed here.
- }Loop();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement