-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
16 lines (16 loc) · 871 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
killswitch = 0; //Defines kill switch variable
function sleep(ms){
return new Promise(resolve => setTimeout(resolve, ms));
}; // I didnt write this part lol I just know it adds a sleep function
cheat = async function(amount, time){ //Creates the s2 function for adding cookies at a set interval
while(true === true){ //keeps this constantly running
if(killswitch == 1){
break; //Checks if the kill switch has been activated and if it has it kills the script
};
await sleep(time); // Pauses the script for the amount of time specified in the "time" variable in the s2 function before adding more cookies
Game.cookies = Game.cookies+amount // Adds the specified amount of cookies to the total amount of cookies
}
};
wipe = async function(){
Game.Reset() // Uses the built in reset function cause I'm lazy
} // Clears all save data except name