Add files via upload
[bcp.git] / csptest / src / global / crashgame.blook
blob883dcd241734f74007cb617944877d85a7247d91
1 console.log(
2 "%cScript: crashgame.blook\n\n%cCreated by Ducklife3141!\n%cJoin the discord server: https://discord.gg/Sta64r9hYp",
3 "color:#0bc2cf;font-size:125%;font-weight:bold;",
4 "font-size:150%;color:red;",
5 "font-size:120%;color:#a000ff;"
6  );
7 var snode = Object.values(window.document.querySelector("#app>div>div"))[1].children[0]._owner.stateNode;
8 if(!snode.props.liveGameController._liveApp){console.error("Error: must be in game!");alert("You must be in a game to use this cheat!");}else{
9 console.log("Crashing game...");
10 alert("Crashing game...");
11 snode.props.liveGameController.setVal({path:"c/"+snode.props.client.name+"/b/toString",val:"this script was run using ducklife3141's crasher"});