Astyll

Venge.io Hacks

Jan 15th, 2024 (edited)
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.14 KB | Gaming | 0 0
  1.  
  2. // ==UserScript==
  3. // @name Venge.io HACKS INF AMMO AIMBOT NOCLIP INVISIBILITY FLY INFJUMP {Venge Hacked Client}
  4. // @namespace http://akncreations.com/
  5. // @version 20230725.1.2.0
  6. // @description The best hacks for VENGE IO (z to open modmenu)
  7. // @author ExplodIng_Andrey
  8. // @match https://*.venge.io/*
  9. // @license https://creativecommons.org/licenses/by-nd/4.0/
  10. // @grant none
  11. // @run-at document-start
  12. // @icon https://venge.io/favicon-96x96.png?qc-size=256,256
  13. // ==/UserScript==
  14.  
  15. // https://www.youtube.com/@exploding_andrey
  16. // https://www.akncreations.com/vhc.html
  17. // https://github.com/AndreyNesterenko2020/
  18.  
  19. addEventListener("load", function(){
  20.  
  21. //VHC designed by ExplodIng_Andrey
  22.  
  23. //dispose of old client (if any)
  24. if(client) {
  25. client.dispose();
  26. };
  27.  
  28. var client = {
  29. Hacks: [],
  30. version: "1.2.0",
  31. keyBinds: {},
  32. inGame: false,
  33. };
  34. client.Hack = class {
  35. constructor(enable, mainLoop, disable, name, description, key, delay, configurationDefinition){
  36. this.enable = function(){try {enable(this_);}catch(e){}; this.isEnabled = true};
  37. this.mainLoop = mainLoop;
  38. this.disable = function(){try {disable(this_);}catch(e){}; this.isEnabled = false};
  39. this.name = name;
  40. this.description = description;
  41. this.isEnabled = false;
  42. this.key = key;
  43.  
  44. this.configurationDefinition = configurationDefinition;
  45. this.config = {};
  46. setTimeout(function() {
  47. this_.configurationDefinition && Object.keys(this_.configurationDefinition).forEach(function (e) {
  48. this_.config[e] = localStorage[this_.name] && JSON.parse(localStorage[this_.name]).config[e] ? JSON.parse(localStorage[this_.name]).config[e] : this_.configurationDefinition[e].defaultValue != undefined ? this_.configurationDefinition[e].defaultValue : (this_.configurationDefinition[e].possibleValues && this_.configurationDefinition[e].possibleValues[0] != undefined) ? this_.configurationDefinition[e].possibleValues[0] : false;
  49. });
  50. }, 1);
  51.  
  52. client.keyBinds[this.key] = this.name;
  53. var this_ = this;
  54. if(!delay){
  55. delay = 10;
  56. };
  57. function loop(){
  58. if(this_.isEnabled && client){
  59. this_.mainLoop(this_);
  60. };
  61. setTimeout(loop, delay);
  62. };
  63. setTimeout(loop, 100);
  64. client.Hacks.push(this);
  65. };
  66. };
  67. client.MenuElement = class {
  68. constructor(Hacks, title, left, top){
  69. var menuElement = document.createElement("div");
  70. menuElement.style = "left:"+left+"; color: rgba(0, 0, 0, 1) !important; top:"+top+"; margin: 25px; text-align: center; background: rgba(114, 154, 232, 1) !important; font-family: inherit; width:20%; height: 60%; position: absolute; border: solid black 4px";
  71. menuElement.id = title;
  72. menuElement.innerHTML = "<div style='border-bottom: solid black 4px; height: 2.5%; padding: 5%; background-color: rgba(149, 180, 240, 1); font-size: 200%' id="+title+"header >"+title+"</div>";
  73. client.menuElement.appendChild(menuElement);
  74. for(let i = 0; i < Hacks.length; i++) {
  75. var part = document.createElement("div");
  76. part.style = 'border-bottom: solid black 4px; font-size: 200%';
  77. part.id = Hacks[i].name;
  78. if(Hacks[i].configurationDefinition) {
  79. let random = Math.floor(Math.random()*1000000);
  80. part.innerHTML = "<null>"+Hacks[i].name+"</null><img style='width: 25px;float:right;cursor:pointer' onmouseover='this.style.filter=`brightness(0.5)`' onmouseleave='this.style.filter=`brightness(1)`' id="+random+" src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAu1JREFUeJzt2L1qFFEAhuEv0Ub8KawsBBuDVqK9pBS8g9yGhY2VVyEItl6AYqmdipb2NoJFEAOCXTDEwh+yyv7Nzu45c+Z54FS7xcfMvDuwCQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBOlR4ww6Ukd5LcSrKd5EvZOSzgdJLbSXaTXE6yn+Sw6KIGnUnyKMmPJMcnzrsk1wvuYra7ST5l8p59T3IvyVbBXU3ZTvIikxf55DlIcrPYOqbZS3KU6fftYbFljdnL9IsskjrNi+P49+c7pQa25FnmByKSeiwSx5/zoNDGpnzIYhdbJOUtE8dxkidlZq5mu/SAfxws8d2LSV5FJCXsJXma5Z6fr2vaMir3s/gvkjdJGcu+Of6c3RJjW3MuyceIpFZd43gef/X25mqSzxFJbbrG8TbJhQJ7m7YTkdREHBUSSR3EUTGRlCWOARBJGeIYEJFsljgGSCSbIY4BE8l6iaMBIlkPcTREJP0SR4NE0g9xNEwkqxHHCIikG3GMiEiW0zWONxHHYIlkMeIYMZHMJg5EMoU4+Eskk8TBf0TyiziYauyRiIO5xhqJOFjY2CIRB0sbSyTioLPWIxEHK2s1EnHQm9YiEQe9ayUScbA2Q49klTjOF9jLAA01EnGwMUOLRBxs3FAiEQfF1B6JOCiu1kjEQTVqi0QcVKeWSMRBtUpHIg6qVyoScTAYm45EHAzOpiIRB4O17kjEweCtKxJx0Iy+I+kax+uIg0r1FYk4aNaqkYiD5nWN5FvEwUh0jUQcjMa6IxEHg7euSMRBM/qORBw0p69IxEGzVo1EHDSvayTiYDSWjUQcjM6ikYiD0ZoXiTgYvStJXmYyjKMkj5OcLbiLKbZKDxipa0luJDlM8j7Jftk5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMzwEyaMP2qlEyFaAAAAAElFTkSuQmCC'>";
  81. setTimeout(function () {
  82. document.getElementById(random).onclick = function (event,element) {
  83. client.renderConfig(Hacks[i]);
  84. }
  85. document.getElementById(random).onmouseover = function () {
  86. client.followText = Hacks[i].name+" options";
  87. }
  88. document.getElementById(random).onmouseleave = function () {
  89. client.followText = "";
  90. }
  91. }, 10);
  92. } else {
  93. part.innerHTML = "<null>"+Hacks[i].name+"</null>";
  94. }
  95. document.getElementById(title).appendChild(part);
  96. document.getElementById(Hacks[i].name).addEventListener("mousedown", function (event){
  97. if(event.target!=document.getElementById(Hacks[i].name) && event.target!=document.getElementById(Hacks[i].name).children[0]) {
  98. return;
  99. }
  100. if(!pc.controls || !client.inGame) {client.error("You must be in a game to enable hacks!"); return};
  101. if(!Hacks[i].isEnabled){
  102. Hacks[i].enable();
  103. document.getElementById(Hacks[i].name).style.backgroundColor = "white";
  104. } else {
  105. Hacks[i].disable();
  106. document.getElementById(Hacks[i].name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  107. };
  108. });
  109. document.getElementById(Hacks[i].name).addEventListener("mouseover", function (event){
  110. if(event.target!=document.getElementById(Hacks[i].name) && event.target!=document.getElementById(Hacks[i].name).children[0]) {
  111. return;
  112. }
  113. client.followText = Hacks[i].description;
  114. });
  115. document.getElementById(Hacks[i].name).addEventListener("mouseleave", function (event){
  116. if(event.target!=document.getElementById(Hacks[i].name) && event.target!=document.getElementById(Hacks[i].name).children[0]) {
  117. return;
  118. }
  119. client.followText = "";
  120. });
  121. };
  122. };
  123. };
  124.  
  125. client.menuToggled = 0;
  126. client.menuElement = document.createElement("div");
  127. document.body.appendChild(client.menuElement);
  128. client.menuElement.id = "vhc-menu";
  129. client.menuElement.style.width = "100%";
  130. client.menuElement.style.height = "100%";
  131. client.menuElement.style.background = "rgba(0, 0, 0, 0.5)";
  132. client.menuElement.style.transition = "all 0.3s ease-in-out";
  133. client.menuElement.style.position = "absolute";
  134. client.menuElement.style.zIndex = 100;
  135.  
  136. client.hackList = document.createElement("h1");
  137. document.body.appendChild(client.hackList);
  138. client.hackList.style.color = "#fff";
  139. client.hackList.style.position = "fixed";
  140. client.hackList.style.top = "35%";
  141. client.hackList.style.marginLeft = "10px";
  142. client.hackList.innerHTML = " Active Hacks V <br>";
  143. client.hackList.style.textShadow = "2px 2px 4px rgba(0, 0, 0, 0.5)";
  144. client.hackList.style.textTransform = "uppercase";
  145. client.hackList.style.transition = "all 0.3s";
  146. client.menuElement.style.zIndex = 100;
  147.  
  148. client.keyBindElement = document.createElement("h1");
  149. document.body.appendChild(client.keyBindElement);
  150. client.keyBindElement.style.color = "#fff";
  151. client.keyBindElement.style.position = "fixed";
  152. client.keyBindElement.style.top = "-1.3%";
  153. client.keyBindElement.style.fontSize = "132%";
  154. client.keyBindElement.style.left = "84%";
  155. client.keyBindElement.style.textShadow = "2px 2px 6px rgba(0, 0, 0, 0.45)";
  156. client.keyBindElement.style.textTransform = "uppercase";
  157. client.keyBindElement.style.textAlign = "right";
  158. client.keyBindElement.innerHTML = "Keybinds:<br>z - open menu<br><br>";
  159. client.menuElement.style.zIndex = 100;
  160.  
  161. client.errorElement = document.createElement("h1");
  162. document.body.appendChild(client.errorElement);
  163. client.errorElement.style.color = "#fff";
  164. client.errorElement.style.position = "absolute";
  165. client.errorElement.style.top = "auto";
  166. client.errorElement.style.width = "auto";
  167. client.errorElement.style.textShadow = "2px 2px 6px rgba(0, 0, 0, 0.45)";
  168. client.errorElement.style.textTransform = "uppercase";
  169. client.errorElement.style.fontSize = "110%";
  170. client.errorElement.style.left = "40%";
  171. client.errorElement.style.border = "none";
  172. client.errorElement.style.borderRadius = "7px";
  173. client.errorElement.style.backgroundColor = "red";
  174. client.errorElement.style.lineHeight = "1.5";
  175. client.errorElement.style.padding = "10px";
  176. client.errorElement.innerHTML = "client.errorElement";
  177. client.errorElement.style.opacity = 0;
  178. client.errorElement.style.transition = "all 0.3s";
  179. client.errorElement.style.zIndex = "100";
  180.  
  181. client.followText = "";
  182. client.follow = document.createElement("div");
  183. client.follow.style.pointerEvents = "none";
  184. client.follow.style.position = "absolute";
  185. client.follow.style.transition = "fade 0.1s";
  186. client.follow.style.border = "0px";
  187. client.follow.style.stroke = "0px";
  188. client.follow.style.outline = "0px";
  189. client.follow.style.color = "white";
  190. client.follow.style.lineHeight = "1.5";
  191. client.follow.style.paddingLeft = "10px";
  192. client.follow.style.paddingRight = "10px";
  193. client.follow.style.zIndex = "9999";
  194. client.follow.style.borderRadius = "3px";
  195. client.follow.style.backgroundColor = "rgba(0, 0, 0, 0.5)";
  196. document.body.appendChild(client.follow);
  197. document.body.addEventListener("mousemove", function (e){
  198. client.follow.innerHTML = client.followText;
  199. client.followText ? client.follow.style.border = "solid black 1px" : client.follow.style.border = "";
  200. x = e.pageX;
  201. y = e.pageY;
  202. client.follow.style.left = (x+10)+"px";
  203. client.follow.style.top = (y+10)+"px";
  204. if(x+10 > innerWidth-client.follow.getBoundingClientRect().width) client.follow.style.left = (innerWidth-client.follow.getBoundingClientRect().width)+"px"
  205. });
  206.  
  207. client.error = function (text) {
  208. var audio = document.createElement("Audio");
  209. audio.src = "files/assets/31197478/1/Error-UI.mp3";
  210. audio.play();
  211. client.errorElement.innerHTML = text;
  212. client.errorElement.style.opacity = 1;
  213. setTimeout(function(){client.errorElement.style.opacity = 0;}, 1000)
  214. };
  215.  
  216. document.addEventListener("keydown", function(event) {
  217. if (event.key == "z") {
  218. client.menuToggled = !client.menuToggled;
  219. !client.menuToggled && pc.app.fire("Mouse:Lock");
  220. };
  221. if (client.keyBinds[event.key]) {
  222. try {
  223. if(pc.app.root.findByName("Game").findByName("Overlay").findByName("ChatWrapper").findByName("Chat").script.scripts[0].isFocused) return;
  224. } catch (e) {}
  225. if(!pc.controls || !client.inGame) {client.error("You must be in a game to enable hacks!"); return};
  226. for(let i = 0; i < client.Hacks.length; i++){
  227. if(client.Hacks[i].name == client.keyBinds[event.key]){
  228. if(client.Hacks[i].isEnabled){
  229. client.Hacks[i].disable();
  230. document.getElementById(client.Hacks[i].name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  231. } else {
  232. client.Hacks[i].enable();
  233. document.getElementById(client.Hacks[i].name).style.backgroundColor = "white";
  234. };
  235. };
  236. };
  237. };
  238. });
  239.  
  240. client.MAIN = function() {
  241. try {
  242. client.inGame = !!pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.ws;
  243. } catch (e) {
  244. client.inGame && stophacks.enable();
  245. client.inGame = false;
  246. }
  247. client.hackList.innerHTML = " <u> Active Hacks</u><br>";
  248. client.keyBindElement.innerHTML = "Z - MENU<br>";
  249. for(let i = 0; i < client.Hacks.length; i++){
  250. if(client.Hacks[i].isEnabled){
  251. client.hackList.innerHTML += client.Hacks[i].name+(client.Hacks[i].type ? " <b style='color: skyblue'>["+client.Hacks[i].type+"]</b>" : " ")+"<br>";
  252. };
  253. if(client.Hacks[i].key == "no keybind") continue;
  254. client.keyBindElement.innerHTML += client.Hacks[i].key+" - "+client.Hacks[i].name+"<br>";
  255. };
  256. if (client.menuToggled) {
  257. document.exitPointerLock();
  258. client.menuElement.style.display = "block";
  259. } else {
  260. client.menuElement.style.display = "none";
  261. }
  262. setTimeout(client.MAIN, 10);
  263. };
  264. client.dispose = function () {
  265. console.log("disposing of client version "+client.version);
  266. client.Hacks.forEach(hack => {
  267. if(hack.isEnabled) {
  268. hack.disable();
  269. };
  270. });
  271. for (element in client) {
  272. client[element].outerHTML = "";
  273. delete client[element];
  274. };
  275. client = undefined;
  276. };
  277. client.renderConfig = function (hack) {
  278. var elem = document.getElementById(hack.name);
  279. if(!elem.children[2]) {
  280. var config = document.createElement("div");
  281. config.style.background = "rgba(149, 180, 240, 1)";
  282. config.style.border = "solid black 4px";
  283. config.style.position = "fixed";
  284. config.style.width = "20%";
  285. config.style.marginLeft = "-4px";
  286. config.innerHTML = "<div style='border-bottom:4px solid black'>Settings</div><div></div>";
  287. elem.appendChild(config);
  288. var list = config.children[1];
  289. list.style.fontSize = "25px";
  290.  
  291. //render configs
  292. Object.values(hack.configurationDefinition).forEach(function(config, index){
  293. switch(config.type) {
  294. case 0:
  295. list.innerHTML += Object.keys(hack.configurationDefinition)[index]+" <input type='checkbox' id='"+Object.keys(hack.configurationDefinition)[index]+"' onchange='client.processConfigChange.call(this, client.Hacks["+client.Hacks.indexOf(hack)+"], "+index+")'></input><br>";
  296. setTimeout(function(){
  297. document.getElementById(Object.keys(hack.configurationDefinition)[index]).checked = hack.config[Object.keys(hack.configurationDefinition)[index]];
  298. }, 10);
  299. break
  300. case 1:
  301. list.innerHTML += Object.keys(hack.configurationDefinition)[index]+" <select id='"+Object.keys(hack.configurationDefinition)[index]+"' onchange='client.processConfigChange.call(this, client.Hacks["+client.Hacks.indexOf(hack)+"], "+index+")'></select><br>";
  302. config.possibleValues.forEach(function(possibleValue) {
  303. document.getElementById(Object.keys(hack.configurationDefinition)[index]).innerHTML += "<option value='"+possibleValue+"'>"+possibleValue+"</option>";
  304. });
  305. setTimeout(function(){
  306. document.getElementById(Object.keys(hack.configurationDefinition)[index]).value = hack.config[Object.keys(hack.configurationDefinition)[index]];
  307. }, 10);
  308. break
  309. case 2:
  310. list.innerHTML += Object.keys(hack.configurationDefinition)[index]+" <input id='"+Object.keys(hack.configurationDefinition)[index]+"' onchange='client.processConfigChange.call(this, client.Hacks["+client.Hacks.indexOf(hack)+"], "+index+")'></input><br>";
  311. setTimeout(function(){
  312. document.getElementById(Object.keys(hack.configurationDefinition)[index]).value = hack.config[Object.keys(hack.configurationDefinition)[index]];
  313. }, 10);
  314. break
  315. }
  316. });
  317. }
  318. if(elem.children[2].style.display == "block") {
  319. elem.children[2].style.display = "none";
  320. elem.children[1].style.transform = "rotate(0deg)";
  321. } else {
  322. elem.children[2].style.display = "block";
  323. elem.children[1].style.transform = "rotate(180deg)";
  324. }
  325. }
  326. client.processConfigChange = function (hack,index) {
  327. var value = this.type == "checkbox" ? this.checked : this.value;
  328. var configName = Object.keys(hack.config)[index];
  329. hack.config[configName]=value;
  330. localStorage[hack.name] = localStorage[hack.name] || "{\"config\":{}}";
  331. var newData = JSON.parse(localStorage[hack.name]);
  332. newData.config[configName] = value;
  333. localStorage[hack.name] = JSON.stringify(newData);
  334. }
  335. client.init = function() {
  336. console.log(client.version+" running on "+navigator.platform);
  337. //hacks
  338. var fly = new client.Hack(function (){
  339. platform = new pc.Entity();
  340. platform.addComponent("collision");
  341. platform.addComponent("rigidbody");
  342. platform.collision.halfExtents.x = 5;
  343. platform.collision.halfExtents.y = 1;
  344. platform.collision.halfExtents.z = 5;
  345. newplatform = new pc.Entity();
  346. }, function (){
  347. if(window.platform){
  348. newplatform.destroy();
  349. newplatform = platform.clone();
  350. pc.app.root.addChild(newplatform);
  351. platform.rigidbody.teleport(pc.app.root.findByName("Game").findByName("Player").localPosition.x, pc.app.root.findByName("Game").findByName("Player").localPosition.y-2, pc.app.root.findByName("Game").findByName("Player").localPosition.z);
  352. };
  353. }, function (){
  354. platform.destroy();
  355. newplatform.destroy();
  356. }, "Flight", "Fly around.", "c");
  357. var infJump = new client.Hack(function (){
  358. pc.controls.jump = function() {
  359. if (Date.now() - this.player.lastGlidingTime < 1e3)
  360. return !1;
  361. if (this.player.cancelGliding(),
  362. !this.isLanded && !this.isCollided)
  363.  
  364. if (this.playerAbilities.isDashing)
  365. return !1;
  366. if (this.bounceJumpTime > this.timestamp)
  367. return !1;
  368. if (this.jumpingTime > this.timestamp)
  369. return !1;
  370. if (this.jumpingTime = this.timestamp + this.jumpDuration,
  371. this.isJumping = !0,
  372. this.isLanded = !1,
  373. this.airTime = this.now(),
  374. this.randomDirection = Math.random() > .5 ? -1 : 1,
  375. this.previousVelocity,
  376. this.now() - this.lastImpactTime > 3e3) {
  377. var t = "Jump-" + (Math.round(1 * Math.random()) + 1);
  378. this.app.fire("Character:Sound", t, .1 * Math.random()),
  379. this.entity.sound.play("Only-Jump"),
  380. this.entity.sound.slots["Only-Jump"].pitch = .1 * Math.random() + 1.1
  381. }
  382. if (this.dynamicGravity = 0,
  383. this.app.fire("Overlay:Jump", !0),
  384. this.isShooting > this.timestamp)
  385. return !1;
  386. this.app.tween(this.animation).to({
  387. jumpAngle: -11
  388. }, .15, pc.BackOut).start()
  389. }
  390. }, function (){
  391.  
  392. }, function (){
  393. pc.controls.jump = function() {
  394. if (Date.now() - this.player.lastGlidingTime < 1e3)
  395. return !1;
  396. if (this.player.cancelGliding(),
  397. !this.isLanded && !this.isCollided)
  398. return !1;
  399. if (this.playerAbilities.isDashing)
  400. return !1;
  401. if (this.bounceJumpTime > this.timestamp)
  402. return !1;
  403. if (this.jumpingTime > this.timestamp)
  404. return !1;
  405. if (this.jumpingTime = this.timestamp + this.jumpDuration,
  406. this.isJumping = !0,
  407. this.isLanded = !1,
  408. this.airTime = this.now(),
  409. this.randomDirection = Math.random() > .5 ? -1 : 1,
  410. this.previousVelocity,
  411. this.now() - this.lastImpactTime > 3e3) {
  412. var t = "Jump-" + (Math.round(1 * Math.random()) + 1);
  413. this.app.fire("Character:Sound", t, .1 * Math.random()),
  414. this.entity.sound.play("Only-Jump"),
  415. this.entity.sound.slots["Only-Jump"].pitch = .1 * Math.random() + 1.1
  416. }
  417. if (this.dynamicGravity = 0,
  418. this.app.fire("Overlay:Jump", !0),
  419. this.player.fireNetworkEvent("j"),
  420. this.isShooting > this.timestamp)
  421. return !1;
  422. this.app.tween(this.animation).to({
  423. jumpAngle: -11
  424. }, .15, pc.BackOut).start()
  425. }
  426. }, "infJump", "Jump around indefinitely.", "m");
  427. var speedHacks = new client.Hack(function (){
  428. speed = 120;
  429. speedElement = document.createElement("h1");
  430. document.body.appendChild(speedElement);
  431. speedElement.style.color = "#fff";
  432. speedElement.style.position = "fixed";
  433. speedElement.style.top = "25px";
  434. speedElement.style.right = "25px";
  435. speedElement.style.background = "#222";
  436. speedElement.style.borderRadius = "15px";
  437. speedElement.style.transform = "translate(-50%, -50%)";
  438. document.body.onkeydown = function(event) {
  439. if (event.keyCode == 38) {
  440. speed += 25;
  441. } else if (event.keyCode == 40) {
  442. if (speed - 25 > 99) {
  443. speed -= 25;
  444. }
  445. }
  446. };
  447. }, function (){
  448. pc.app.fire("Admin:Speed", speed);
  449. speedElement.innerHTML = "&#11014; Speed: " + speed+" &#11015;";
  450. }, function(){
  451. speedElement.outerHTML = "";
  452. pc.app.fire("Admin:Speed", 120);
  453. }, "SpeedHacks", "Use up and down arrows to change your speed!", "t");
  454. var playerTeleport = new client.Hack(function (this_){
  455. pc.app.root.findByName("Game").findByName("Player").rigidbody.type = "dynamic";
  456. playerId = 2;
  457. playerName = document.createElement("h1");
  458. teleportToggled = 0;
  459. document.body.appendChild(playerName);
  460. playerName.style.color = "#fff";
  461. playerName.style.width = "35%";
  462. playerName.style.padding = "15px";
  463. playerName.style.textAlign = "center";
  464. playerName.style.background = "#222";
  465. playerName.style.borderRadius = "15px";
  466. playerName.style.position = "fixed";
  467. playerName.style.bottom = "0px";
  468. playerName.style.left = "50%";
  469. playerName.style.transform = "translate(-50%, -50%)";
  470. playerName.innerHTML = "An error has occured, Or there are no other players. Restart hack.";
  471. document.body.onkeydown = function(event) {
  472. if(pc.app.root.findByName("Game").findByName("Overlay").findByName("ChatWrapper").findByName("Chat").script.scripts[0].isFocused) return;
  473. try {
  474. if (event.keyCode == 39 && pc.app.root.findByName("Game").findByName("PlayerHolder").children.length - 2 >= playerId) {
  475. playerId += 1;
  476. };
  477. if (event.keyCode == 37 && playerId - 1 > 1) {
  478. playerId -= 1;
  479. };
  480. if (event.keyCode == 86 && this_.isEnabled) {
  481. pc.app.root.findByName("Game").findByName("Player").rigidbody.teleport(
  482. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().x - 1,
  483. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().y + 10,
  484. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().z
  485. );
  486. };
  487. if (event.keyCode == 66 && this_.isEnabled) {
  488. if (teleportToggled == 0) {
  489. teleportToggled = 1;
  490. } else {
  491. teleportToggled = 0;
  492. };
  493. };
  494. } catch (e) {}
  495. };
  496. }, function (){
  497. playerName.innerHTML = "&#11013; Selected: " + pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].script.scripts[0].username + " &#10145;<br>'V' to teleport once...<br>'B' to constantly follow them!";
  498. if (teleportToggled == 1) {
  499. try {
  500. pc.app.root.findByName("Game").findByName("Player").rigidbody.teleport(
  501. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().x - 1,
  502. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().y + 10,
  503. pc.app.root.findByName("Game").findByName("PlayerHolder").children[playerId].getPosition().z
  504. );
  505. pc.app.root.findByName("Game").findByName("Player").rigidbody.type = "static";
  506. } catch (e) {pc.app.root.findByName("Game").findByName("Player").rigidbody.type = "dynamic"};
  507. } else {
  508. pc.app.root.findByName("Game").findByName("Player").rigidbody.type = "dynamic";
  509. };
  510. }, function (){
  511. playerName.outerHTML = "";
  512. teleportToggled = 0;
  513. if(!noclip.isEnabled) pc.app.root.findByName("Game").findByName("Player").rigidbody.type = "dynamic";
  514. }, "playerTeleport", "Use left and right arrow keys to cycle players and teleport", "g");
  515. var bulletHacks = new client.Hack(function (){
  516. pc.controls.setShooting = function(t) {
  517. if (!this.isMouseLocked)
  518. return !1;
  519. var closest = Infinity;
  520. var closestPlayer = new pc.Entity();
  521. for(var i = 2; i <= pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1; i++){
  522. var dist = pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.distance(pc.app.root.findByName("Game").findByName("Player").localPosition)
  523. if(dist < closest && pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].health != 0){
  524. if((pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].team == pc.currentTeam) && pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].team != "none") continue
  525. closest = dist;
  526. closestPlayer = pc.app.root.findByName("Game").findByName("PlayerHolder").children[i];
  527. };
  528. };
  529. if ("Melee" == this.currentWeapon.type && this.setMeleeShoot(),
  530. "Throwable" == this.currentWeapon.type && this.setThrowShoot(),
  531. "Launcher" == this.currentWeapon.type && this.setLauncherShoot(t),
  532. this.player.checkShooting(),
  533. !this.currentWeapon.isShootable)
  534. return !1;
  535. if (this.leftMouse || this.isShootingLocked || this.isFireStopped || (this.stopFiring(),
  536. 0 === this.currentWeapon.ammo && this.reload()),
  537. this.leftMouse && !this.isWeaponHidden && !this.isShootingLocked && !this.playerAbilities.isThrowing && this.isReloading < this.timestamp && this.playerAbilities.isHitting < this.timestamp && (this.currentWeapon.ammo > 0 ? this.isShooting = this.currentWeapon.shootTime + this.timestamp : this.reload()),
  538. this.isShooting > this.timestamp && !this.isShootingLocked) {
  539. this.currentWeapon.recoil,
  540. this.currentWeapon.cameraShake,
  541. Math.random(),
  542. Math.random(),
  543. this.currentWeapon.spread;
  544. var i = Math.cos(110 * this.spreadCount);
  545. this.currentWeapon.spread;
  546. this.cancelInspect(!0),
  547. this.isFocusing && "Rifle" == this.currentWeapon.type && (-.05,
  548. .5,
  549. -.2,
  550. .5,
  551. .05,
  552. this.currentWeapon.focusSpread,
  553. this.currentWeapon.focusSpread * i),
  554. "Sniper" != this.currentWeapon.type && "Shotgun" != this.currentWeapon.type || (this.spreadNumber = this.currentWeapon.spread,
  555. this.isFocusing && (this.spreadNumber = this.currentWeapon.focusSpread),
  556. -5,
  557. 5.2),
  558. this.currentWeapon.shoot(),
  559. this.currentWeapon.isAutomatic || (this.isMouseReleased = !1,
  560. this.leftMouse = !1);
  561. var e = this.currentWeapon.bulletPoint.getPosition().clone()
  562. , s = this.currentWeapon.bulletPoint.getEulerAngles().clone();
  563. "Sniper" == this.currentWeapon.type && this.isFocusing || (this.app.fire("EffectManager:Bullet", e, s),
  564. this.entity.script.weaponManager.triggerShooting());
  565. var o = this.currentWeapon.muzzlePoint.getPosition().clone()
  566. , n = this.raycastShootFrom
  567. , a = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  568. , h = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  569. , r = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  570. , p = new pc.Vec3(closestPlayer.position.x, closestPlayer.position.y+1.5+Math.random()/10, closestPlayer.position.z)
  571. , c = this.currentWeapon.damage
  572. , m = this.currentWeapon.distanceMultiplier;
  573. if ("Shotgun" == this.currentWeapon.type) {
  574. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c, "Shotgun", m);
  575. for (var u = 1, l = 0; l < 10; l++)
  576. l > 5 && (u = .5),
  577. a = Math.cos(l / 3 * Math.PI) * this.spreadNumber * u,
  578. h = Math.sin(l / 3 * Math.PI) * this.spreadNumber * u,
  579. r = Math.cos(l / 3 * Math.PI) * this.spreadNumber * u,
  580. p = new pc.Vec3(closestPlayer.position.x, closestPlayer.position.y+2+Math.random()/10, closestPlayer.position.z),
  581. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c, "Shotgun", m)
  582. } else
  583. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c);
  584. this.setShakeAnimation(t),
  585. this.isShootingLocked = !0,
  586. this.isFireStopped = !1
  587. }
  588. this.isShooting < this.timestamp && this.isShootingLocked && (this.isShootingLocked = !1),
  589. this.updateShakeAnimation(t)
  590. }
  591. }, function(){
  592.  
  593. }, function (){
  594. pc.controls.setShooting = function(t) {
  595. if (!this.isMouseLocked)
  596. return !1;
  597. if ("Melee" == this.currentWeapon.type && this.setMeleeShoot(),
  598. "Throwable" == this.currentWeapon.type && this.setThrowShoot(),
  599. "Launcher" == this.currentWeapon.type && this.setLauncherShoot(t),
  600. this.player.checkShooting(),
  601. !this.currentWeapon.isShootable)
  602. return !1;
  603. if (this.leftMouse || this.isShootingLocked || this.isFireStopped || (this.stopFiring(),
  604. 0 === this.currentWeapon.ammo && this.reload()),
  605. this.leftMouse && !this.isWeaponHidden && !this.isShootingLocked && !this.playerAbilities.isThrowing && this.isReloading < this.timestamp && this.playerAbilities.isHitting < this.timestamp && (this.currentWeapon.ammo > 0 ? this.isShooting = this.currentWeapon.shootTime + this.timestamp : this.reload()),
  606. this.isShooting > this.timestamp && !this.isShootingLocked) {
  607. this.currentWeapon.recoil,
  608. this.currentWeapon.cameraShake,
  609. Math.random(),
  610. Math.random(),
  611. this.currentWeapon.spread;
  612. var i = Math.cos(110 * this.spreadCount);
  613. this.currentWeapon.spread;
  614. this.cancelInspect(!0),
  615. this.isFocusing && "Rifle" == this.currentWeapon.type && (-.05,
  616. .5,
  617. -.2,
  618. .5,
  619. .05,
  620. this.currentWeapon.focusSpread,
  621. this.currentWeapon.focusSpread * i),
  622. "Sniper" != this.currentWeapon.type && "Shotgun" != this.currentWeapon.type || (this.spreadNumber = this.currentWeapon.spread,
  623. this.isFocusing && (this.spreadNumber = this.currentWeapon.focusSpread),
  624. -5,
  625. 5.2),
  626. this.currentWeapon.shoot(),
  627. this.currentWeapon.isAutomatic || (this.isMouseReleased = !1,
  628. this.leftMouse = !1);
  629. var e = this.currentWeapon.bulletPoint.getPosition().clone()
  630. , s = this.currentWeapon.bulletPoint.getEulerAngles().clone();
  631. "Sniper" == this.currentWeapon.type && this.isFocusing || (this.app.fire("EffectManager:Bullet", e, s),
  632. this.entity.script.weaponManager.triggerShooting());
  633. var o = this.currentWeapon.muzzlePoint.getPosition().clone()
  634. , n = this.raycastShootFrom
  635. , a = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  636. , h = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  637. , r = Math.random() * this.spreadNumber - Math.random() * this.spreadNumber
  638. , p = this.raycastTo.clone().add(new pc.Vec3(a,h,r))
  639. , c = this.currentWeapon.damage
  640. , m = this.currentWeapon.distanceMultiplier;
  641. if ("Shotgun" == this.currentWeapon.type) {
  642. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c, "Shotgun", m);
  643. for (var u = 1, l = 0; l < 10; l++)
  644. l > 5 && (u = .5),
  645. a = Math.cos(l / 3 * Math.PI) * this.spreadNumber * u,
  646. h = Math.sin(l / 3 * Math.PI) * this.spreadNumber * u,
  647. r = Math.cos(l / 3 * Math.PI) * this.spreadNumber * u,
  648. p = this.raycastTo.clone().add(new pc.Vec3(a,h,r)),
  649. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c, "Shotgun", m)
  650. } else
  651. this.app.fire("EffectManager:Fire", n, p, o, this.player.playerId, c);
  652. this.setShakeAnimation(t),
  653. this.isShootingLocked = !0,
  654. this.isFireStopped = !1
  655. }
  656. this.isShooting < this.timestamp && this.isShootingLocked && (this.isShootingLocked = !1),
  657. this.updateShakeAnimation(t)
  658. }
  659. }, "aimBot", "Homing bullets that target headshots", "l");
  660. var infAmmo = new client.Hack(function (){
  661.  
  662. }, function (){
  663. pc.controls.currentWeapon.ammo=Infinity;
  664. }, function (){
  665. pc.controls.setAmmoFull();
  666. }, "infAmmo", "Infinite ammo - no reloading needed", "k", 1);
  667. var ESP = new client.Hack(function (){
  668. nearestPlayer = document.createElement("h1");
  669. document.body.appendChild(nearestPlayer);
  670. nearestPlayer.style.color = "#fff";
  671. nearestPlayer.style.width = "35%";
  672. nearestPlayer.style.padding = "15px";
  673. nearestPlayer.style.textAlign = "center";
  674. nearestPlayer.style.background = "#222";
  675. nearestPlayer.style.borderRadius = "15px";
  676. nearestPlayer.style.position = "fixed";
  677. nearestPlayer.style.bottom = "0px";
  678. nearestPlayer.style.left = "50%";
  679. nearestPlayer.style.transform = "translate(-50%, -50%)";
  680. nearestPlayer.innerHTML = "An error has occured, Or there are no other players. Restart hack.";
  681. window._a = 0;
  682. }, function (){
  683. window._a++;
  684. var closest = Infinity;
  685. var closestPlayer = new pc.Entity();
  686. closestPlayer.script = {scripts:[{username:"none"}]};
  687. for(let i = 2; i <= pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1; i++){
  688. var dist = pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.distance(pc.app.root.findByName("Game").findByName("Player").localPosition)
  689. if(dist < closest && pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].health != 0){
  690. closest = dist;
  691. closestPlayer = pc.app.root.findByName("Game").findByName("PlayerHolder").children[i];
  692. };
  693. };
  694. nearestPlayer.innerHTML = "Nearest Player: "+closestPlayer.script.scripts[0].username+"<br>Distance: "+closest;
  695. if(closest<6) nearestPlayer.style.color = "red"
  696. if(closest>6) nearestPlayer.style.color = "white"
  697. if(window._a < 10) return;
  698. window._a = 0;
  699. for(let i = 2; i <= pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1; i++){
  700. pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.label.isEnabled=true
  701. pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.label.alwaysShow=true
  702. if(pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].team == "none"){
  703. pc.app.drawLine(pc.app.root.findByName("Game").findByName("Player").localPosition, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position, pc.Color.RED, false);
  704. } else {
  705. if(pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.scripts[0].team == pc.currentTeam) {
  706. pc.app.drawLine(pc.app.root.findByName("Game").findByName("Player").localPosition, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position, pc.Color.GREEN, false);
  707. } else {
  708. pc.app.drawLine(pc.app.root.findByName("Game").findByName("Player").localPosition, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position, pc.Color.RED, false);
  709. };
  710. };
  711. };
  712. }, function (){
  713. nearestPlayer.outerHTML = "";
  714. for(let i = 2; i <= pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1; i++){
  715. console.log(pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].render);
  716. pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].removeComponent("render");
  717. pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.label.isEnabled=false
  718. pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].script.label.alwaysShow=false
  719. };
  720. }, "ESP", "Always know where players are.", ";");
  721. var spamChat = new client.Hack(function () {
  722. }, function () {
  723. function uuid (){
  724. const ho = (n, p) => n.toString(16).padStart(p, 0); /// Return the hexadecimal text representation of number `n`, padded with zeroes to be of length `p`
  725. const data = crypto.getRandomValues(new Uint8Array(16)); /// Fill the buffer with random data
  726. data[6] = (data[6] & 0xf) | 0x40; /// Patch the 6th byte to reflect a version 4 UUID
  727. data[8] = (data[8] & 0x3f) | 0x80; /// Patch the 8th byte to reflect a variant 1 UUID (version 4 UUIDs are)
  728. const view = new DataView(data.buffer); /// Create a view backed by a 16-byte buffer
  729. return `${ho(view.getUint32(0), 8)}-${ho(view.getUint16(4), 4)}-${ho(view.getUint16(6), 4)}-${ho(view.getUint16(8), 4)}-${ho(view.getUint32(10), 8)}${ho(view.getUint16(14), 4)}`; /// Compile the canonical textual form from the array data
  730. };
  731. pc.app.fire("Network:Chat", uuid());
  732. }, function (){
  733. }, "spamChat", "Spam the game's chat", "no keybind", 200);
  734. var serverKill = new client.Hack(function (this_){
  735. pc.controls.setCameraAngle = function(t,a) {
  736. this.lookY = Math.max(-90, this.lookY),
  737. this.lookY = Math.min(90, this.lookY),
  738. this.isLanded ? this.currentLook = this.lookX + this.animation.cameraImpact : this.currentLook = pc.math.lerpAngle(this.currentLook, this.lookX + this.animation.cameraImpact, .01),
  739. this.angleEntity.setLocalEulerAngles(0, this.currentLook, 0),
  740. this.isReloading > this.timestamp && (this.isFocusing = !1)
  741. };
  742. var pos = pc.app.root.findByName("Game").findByName("Player").position;
  743. for(let i = 2; i <= pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1; i++){
  744. setTimeout(function(){pc.app.root.findByName("Game").findByName("Player").rigidbody.teleport(new pc.Vec3(pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.x-2, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.y, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.z));pc.controls.lookEntity.lookAt(new pc.Vec3(pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.x, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.y, pc.app.root.findByName("Game").findByName("PlayerHolder").children[i].position.z));pc.controls.leftMouse=true;}, 1000*i);
  745. setTimeout(function(){pc.controls.triggerKeyE();pc.controls.setMouseState(true);
  746. pc.controls.currentWeapon.ammo = 50}, 950*i);
  747. setTimeout(function(){console.log(i == pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1);if(i == pc.app.root.findByName("Game").findByName("PlayerHolder").children.length-1){
  748. document.getElementById(serverKill.name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  749. serverKill.disable();
  750. pc.app.root.findByName("Game").findByName("Player").rigidbody.teleport(pos.x, pos.y, pos.z);
  751. }}, 1200*i);
  752. };
  753. }, function (){
  754.  
  755. }, function (){
  756. pc.controls.leftMouse=false;
  757. pc.controls.setCameraAngle = function(t) {
  758. this.lookY = Math.max(-90, this.lookY),
  759. this.lookY = Math.min(90, this.lookY),
  760. this.lookEntity.setLocalEulerAngles(this.lookY + this.animation.cameraBounce + this.animation.cameraImpact, this.lookX + this.animation.cameraImpact, 0),
  761. this.lookXEntity.setLocalEulerAngles(0, this.lookX + this.animation.cameraImpact, 0),
  762. this.isLanded ? this.currentLook = this.lookX + this.animation.cameraImpact : this.currentLook = pc.math.lerpAngle(this.currentLook, this.lookX + this.animation.cameraImpact, .01),
  763. this.angleEntity.setLocalEulerAngles(0, this.currentLook, 0),
  764. this.isReloading > this.timestamp && (this.isFocusing = !1)
  765. };
  766. }, "serverKill", "instantly kill the server", "no keybind");
  767. var emergencyTeleport = new client.Hack(function (){
  768. pc.app.fire("Network:Respawn", false);
  769. }, function() {
  770. document.getElementById(emergencyTeleport.name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  771. emergencyTeleport.disable();
  772. }, function () {
  773.  
  774. }, "emergencyTeleport", "teleport away in times of crisis", "q");
  775. var opGun = new client.Hack(function (){
  776. window.oldStats = window.oldStats || {};
  777. window.oldStats[pc.controls.currentWeapon.entity.name] = [pc.controls.currentWeapon.shootTime, pc.controls.currentWeapon.isAutomatic];
  778. }, function() {
  779. pc.controls.currentWeapon.shootTime = 0.01;
  780. pc.controls.currentWeapon.isAutomatic = true;
  781. }, function () {
  782. pc.controls.currentWeapon.shootTime = window.oldStats[pc.controls.currentWeapon.entity.name][0];
  783. pc.controls.currentWeapon.isAutomatic = window.oldStats[pc.controls.currentWeapon.entity.name][1];
  784. delete window.oldStats[pc.controls.currentWeapon.entity.name][1];
  785. }, "opGun", "makes every gun behave like a machine gun (tip: use with sniper)", "no keybind");
  786. var noRecoil = new client.Hack(function (){
  787. pc.controls.setShakeAnimation = function(t) {
  788. this.currentWeapon.ammo--;
  789. this.app.fire("Overlay:Shoot", !0);
  790. }
  791. }, function () {
  792.  
  793. }, function (){
  794. pc.controls.setShakeAnimation = function(t) {
  795. var i = this.currentWeapon.recoil
  796. , e = this.currentWeapon.cameraShake
  797. , s = .03 * Math.random() - .03 * Math.random()
  798. , o = -.15 * i
  799. , n = 6 * i
  800. , a = -1.2
  801. , h = 2
  802. , r = this.currentWeapon.spread
  803. , p = Math.cos(110 * this.spreadCount)
  804. , c = this.currentWeapon.spread * p;
  805. this.isFocusing && "Rifle" == this.currentWeapon.type && (o = -.05,
  806. n = .5,
  807. a = -.2,
  808. e *= .5,
  809. h = .05,
  810. r = this.currentWeapon.focusSpread,
  811. c = this.currentWeapon.focusSpread * p),
  812. "Sniper" != this.currentWeapon.type && "Shotgun" != this.currentWeapon.type || (a = -5,
  813. h = 5.2),
  814. this.lookY += .04 * e,
  815. this.spreadNumber = pc.math.lerp(this.spreadNumber, r, .1),
  816. this.spreadCount += t,
  817. this.currentWeapon.ammo--,
  818. this.app.fire("Overlay:Shoot", !0),
  819. this.app.tween(this.animation).to({
  820. bounceX: s,
  821. bounceZ: o,
  822. bounceAngle: n,
  823. shootSwing: h
  824. }, .03, pc.BackOut).start(),
  825. this.app.tween(this.animation).to({
  826. cameraShootBounce: a,
  827. cameraBounce: this.animation.cameraBounce + .025 * e
  828. }, .09, pc.BackOut).start(),
  829. this.animation.activeBounce = pc.math.lerp(this.animation.activeBounce, -e, .05),
  830. this.animation.horizantalSpread = pc.math.lerp(this.animation.horizantalSpread, .04 * c, .1)
  831. }
  832. }, "noRecoil", "no recoil", "no keybind");
  833. var instaRespawn = new client.Hack(function (){
  834.  
  835. }, function () {
  836. if(pc.controls.player.isDeath) {
  837. pc.app.fire("Network:Respawn", false);
  838. }
  839. }, function (){
  840.  
  841. }, "instaRespawn", "respawn instantly", "no keybind");
  842. var serverCrash = new client.Hack(function (this_){
  843. window.allow = false;
  844. if(this_.config.type == "countdown") {
  845. pc.app.fire("Network:Chat", "Crashing server in 10 seconds");
  846. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 9 seconds");}, 1000);
  847. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 8 seconds");}, 2000);
  848. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 7 seconds");}, 3000);
  849. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 6 seconds");}, 4000);
  850. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 5 seconds");}, 5000);
  851. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 4 seconds");}, 6000);
  852. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 3 seconds");}, 7000);
  853. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 2 seconds");}, 8000);
  854. setTimeout(function(){pc.app.fire("Network:Chat", "Crashing server in 1 seconds");}, 9000);
  855. setTimeout(function(){pc.app.fire("Network:Chat", "Have a great day :)");}, 9900);
  856. setTimeout(function(){window.allow=true}, 10000);
  857. } else {
  858. window.allow = true;
  859. }
  860. }, function () {
  861. this.type = this.config.type;
  862. if(window.allow) {
  863. for(var a = 0; a < 52; a++) {
  864. var killString = "";
  865. for(var i = 0; i < 2048; i++){
  866. killString += "I_am_a_monkey_and_I_love_bananas\n";
  867. };
  868. pc.app.root.findByName("Game").findByName("NetworkManager").script.scripts[0].ws.send({monkey:killString, monkey2: killString});
  869. };
  870. };
  871. }, function (){
  872.  
  873. }, "serverCrash", "Crash the server", "no keybind", false, {type:{type:1,defaultValue:"countdown",possibleValues:["countdown","instant"]}});
  874. var instantWeaponSwitch = new client.Hack(function (){
  875. pc.controls.player.setWeapon = function(t) {
  876. this.movement.disableZoom(),
  877. this.weaponManager.setWeapon(t),
  878. this.weaponIndex = this.weapons.indexOf(t),
  879. this.lastWeapon = t,
  880. this.lastWeaponChange = Date.now()
  881. }
  882. pc.controls.player.weaponManager.setWeapon = function(e, t) {
  883. if (this.currentWeaponName == e)
  884. return this.app.fire("Overlay:CircularSelect", e),
  885. !1;
  886. if (!t) {
  887. if (this.movement.isReloading > this.movement.timestamp)
  888. return !1;
  889. if (pc.isFinished)
  890. return !1
  891. }
  892. this.app.fire("Player:Focus", !1),
  893. t || this.app.fire("Network:Weapon", e),
  894. this.movement.hideWeapon(),
  895. this.currentWeapon ? (clearTimeout(this.takeOutTimer),
  896. this.takeOutTimer = setTimeout((function(a) {
  897. a.setWeaponModel(e, t),
  898. a.movement.takeout()
  899. }
  900. ), 0, this)) : this.setWeaponModel(e, t),
  901. this.app.fire("Overlay:CircularSelect", e),
  902. this.app.fire("Overlay:Weapon", e),
  903. this.currentWeaponName = e
  904. }
  905. }, function () {
  906.  
  907. }, function (){
  908. pc.controls.player.setWeapon = function(t) {
  909. if (pc.currentModeOptions && !0 === pc.currentModeOptions.noWeaponChange)
  910. return !1;
  911. if (this.lastWeapon == t)
  912. return !1;
  913. if (Date.now() - this.lastWeaponChange > 2e3 || this.isDeath) {
  914. if (this.movement.isShooting > this.movement.timestamp && !this.isDeath)
  915. return !1;
  916. if (this.movement.isReloading > this.movement.timestamp && !this.isDeath)
  917. return !1;
  918. this.movement.disableZoom(),
  919. this.weaponManager.setWeapon(t),
  920. this.weaponIndex = this.weapons.indexOf(t),
  921. this.lastWeapon = t,
  922. this.lastWeaponChange = Date.now()
  923. } else
  924. this.app.fire("Chat:Message", "Console", "Please wait 2 seconds to change weapon."),
  925. this.weaponIndex = this.weapons.indexOf(this.lastWeapon)
  926. }
  927. pc.controls.player.weaponManager.setWeapon = function(e, t) {
  928. if (this.currentWeaponName == e)
  929. return this.app.fire("Overlay:CircularSelect", e),
  930. !1;
  931. if (!t) {
  932. if (this.movement.isReloading > this.movement.timestamp)
  933. return !1;
  934. if (pc.isFinished)
  935. return !1
  936. }
  937. this.app.fire("Player:Focus", !1),
  938. t || this.app.fire("Network:Weapon", e),
  939. this.movement.hideWeapon(),
  940. this.currentWeapon ? (clearTimeout(this.takeOutTimer),
  941. this.takeOutTimer = setTimeout((function(a) {
  942. a.setWeaponModel(e, t),
  943. a.movement.takeout()
  944. }
  945. ), 300, this)) : this.setWeaponModel(e, t),
  946. this.app.fire("Overlay:CircularSelect", e),
  947. this.app.fire("Overlay:Weapon", e),
  948. this.currentWeaponName = e
  949. }
  950. }, "instantWeaponSwitch", "No more weapon switch cooldown", "no keybind");
  951. var noDrown = new client.Hack(function (this_){
  952. pc.app.off("Network:Drown");
  953. }, function () {
  954.  
  955. }, function (this_){
  956. pc.app.on("Network:Drown",pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.setDrown,pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager);
  957. }, "noDrown", "Disabled drowning", "no keybind");
  958. var noclip = new client.Hack(function () {
  959. pc.controls.setMovement = function() {
  960. pc.app.root.findByName("Game").findByName("Player").rigidbody.type="static";
  961. var t = this.lookEntity.forward
  962. , i = this.lookEntity.right
  963. , e = 1
  964. , s = this.defaultSpeed
  965. , o = this.strafingSpeed;
  966. e *= this.animation.movementFactor,
  967. this.isFocusing && (e = this.focusSpeedFactor),
  968. this.currentWeapon && "Heavy" == this.currentWeapon.weight ? (e *= .75,
  969. this.animation.movementFactorStatic = .65) : this.animation.movementFactorStatic = 1,
  970. this.force.x = 0,
  971. this.force.z = 0,
  972. !this.isForward || this.isLeft || this.isRight ? this.isForward && (this.force.x += t.x * o * e,
  973. this.force.z += t.z * o * e) : (this.force.x += t.x * s * e,
  974. this.force.z += t.z * s * e),
  975. this.isBackward && (this.force.x -= t.x * o * e,
  976. this.force.z -= t.z * o * e),
  977. this.isLeft && (this.force.x -= i.x * o * e,
  978. this.force.z -= i.z * o * e),
  979. this.isRight && (this.force.x += i.x * o * e,
  980. this.force.z += i.z * o * e)
  981. if(this.isDown) {
  982. this.force.y = -120;
  983. } else {
  984. if(this.isUp) {
  985. this.force.y = 120;
  986. } else {
  987. this.force.y = 0;
  988. }
  989. }
  990. if(this.isForward == this.isBackward) {this.isForward = this.isBackward = false}
  991. if(this.isLeft == this.isRight) {this.isLeft = this.isRight = false}
  992. var e = new pc.Vec3().copy(this.entity.localPosition).add(new pc.Vec3(this.force.x/120,this.force.y/120,this.force.z/120))
  993. pc.app.root.findByName("Game").findByName("Player").rigidbody.teleport(e);
  994. this.app.fire("EffectManager:PlayerPosition", this.entity.getPosition().clone());
  995. }
  996. pc.controls.setKeyboard = function() {
  997. if(!pc.app.keyboard.isPressed(pc.KEY_UP) && this.isForward) this.isForward = false;
  998. if(!pc.app.keyboard.isPressed(pc.KEY_DOWN) && this.isBackward) this.isBackward = false;
  999. if(!pc.app.keyboard.isPressed(pc.KEY_LEFT) && this.isLeft) this.isLeft = false;
  1000. if(!pc.app.keyboard.isPressed(pc.KEY_RIGHT) && this.isRight) this.isRight = false;
  1001. if(!pc.app.keyboard.isPressed(pc.KEY_W) && this.isForward) this.isForward = false;
  1002. if(!pc.app.keyboard.isPressed(pc.KEY_S) && this.isBackward) this.isBackward = false;
  1003. if(!pc.app.keyboard.isPressed(pc.KEY_A) && this.isLeft) this.isLeft = false;
  1004. if(!pc.app.keyboard.isPressed(pc.KEY_D) && this.isRight) this.isRight = false;
  1005. if(!pc.app.keyboard.isPressed(pc.KEY_SHIFT) && this.isDown) this.isDown = false;
  1006. if(!pc.app.keyboard.isPressed(pc.KEY_SPACE) && this.isUp) this.isUp = false;
  1007. return !this.isFrozen && (!this.player.isDeath && (!pc.isFinished && (!this.locked && ("INPUT" != document.activeElement.tagName && (this.jumpingTime + this.jumpLandTime < this.timestamp && this.currentHeight < this.nearGround && (this.isForward = !1,
  1008. this.isBackward = !1,
  1009. this.isLeft = !1,
  1010. this.isRight = !1),
  1011. (this.app.keyboard.isPressed(pc.KEY_UP) || this.app.keyboard.isPressed(pc.KEY_W) || this.isMobileForward) && (this.isForward = !0),
  1012. (this.app.keyboard.isPressed(pc.KEY_DOWN) || this.app.keyboard.isPressed(pc.KEY_S) || this.isMobileBackward) && (this.isBackward = !0),
  1013. (this.app.keyboard.isPressed(pc.KEY_LEFT) || this.app.keyboard.isPressed(pc.KEY_A) || this.isMobileLeft) && (this.isLeft = !0),
  1014. (this.app.keyboard.isPressed(pc.KEY_RIGHT) || this.app.keyboard.isPressed(pc.KEY_D) || this.isMobileRight) && (this.isRight = !0),
  1015. this.app.keyboard.wasPressed(pc.KEY_SPACE) && this.jump(),
  1016. this.app.keyboard.wasPressed(pc.KEY_R) && this.reload(),
  1017. this.app.keyboard.wasPressed(pc.KEY_F) && this.triggerKeyF(),
  1018. this.app.keyboard.wasPressed(pc.KEY_E) && this.triggerKeyE(),
  1019. this.app.keyboard.wasPressed(pc.KEY_V) && this.player.spray(),
  1020. this.app.keyboard.wasPressed(pc.KEY_X) && (this.leftMouse = !0,
  1021. this.isMouseReleased = !0),
  1022. this.app.keyboard.wasReleased(pc.KEY_X) && (this.leftMouse = !1),
  1023. this.app.keyboard.wasPressed(pc.KEY_L) && (this.app.fire("Mouse:Lock"),
  1024. this.app.fire("Overlay:Pause", !1)),
  1025. this.app.keyboard.wasPressed(pc.KEY_M),
  1026. this.app.keyboard.wasPressed(pc.KEY_J) && this.inspect(),
  1027. this.app.keyboard.wasPressed(pc.KEY_SHIFT) && (this.isDown = !0),
  1028. this.app.keyboard.wasPressed(pc.KEY_SPACE) && (this.isUp = !0),
  1029. this.app.keyboard.wasReleased(pc.KEY_SPACE) && (this.isUp = !1),
  1030. void (this.app.keyboard.wasReleased(pc.KEY_SHIFT) && (this.isDown = !1)))))))
  1031. }
  1032. pc.controls.checkGlitches = function (){}
  1033. }, function () {
  1034.  
  1035. }, function () {
  1036. pc.app.root.findByName("Game").findByName("Player").rigidbody.type="dynamic";
  1037. pc.controls.setMovement = function() {
  1038. if (this.player.isDeath)
  1039. return !1;
  1040. if (pc.isFinished)
  1041. return !1;
  1042. if (this.playerAbilities.isDashing)
  1043. return !1;
  1044. var t = this.angleEntity.forward
  1045. , i = this.angleEntity.right
  1046. , e = 1
  1047. , s = this.defaultSpeed
  1048. , o = this.strafingSpeed;
  1049. e *= this.animation.movementFactor,
  1050. this.isFocusing && (e = this.focusSpeedFactor),
  1051. this.currentWeapon && "Heavy" == this.currentWeapon.weight ? (e *= .75,
  1052. this.animation.movementFactorStatic = .65) : this.animation.movementFactorStatic = 1,
  1053. this.force.x = 0,
  1054. this.force.z = 0,
  1055. !this.isForward || this.isLeft || this.isRight ? this.isForward && (this.force.x += t.x * o * e,
  1056. this.force.z += t.z * o * e) : (this.force.x += t.x * s * e,
  1057. this.force.z += t.z * s * e),
  1058. this.isBackward && (this.force.x -= t.x * o * e,
  1059. this.force.z -= t.z * o * e),
  1060. this.isLeft && (this.force.x -= i.x * o * e,
  1061. this.force.z -= i.z * o * e),
  1062. this.isRight && (this.force.x += i.x * o * e,
  1063. this.force.z += i.z * o * e),
  1064. this.entity.rigidbody.applyForce(this.currentForce),
  1065. this.app.fire("EffectManager:PlayerPosition", this.entity.getPosition().clone())
  1066. }
  1067. pc.controls.setKeyboard = function() {
  1068. return !this.isFrozen && (!this.player.isDeath && (!pc.isFinished && (!this.locked && ("INPUT" != document.activeElement.tagName && (this.jumpingTime + this.jumpLandTime < this.timestamp && this.currentHeight < this.nearGround && (this.isForward = !1,
  1069. this.isBackward = !1,
  1070. this.isLeft = !1,
  1071. this.isRight = !1),
  1072. (this.app.keyboard.isPressed(pc.KEY_UP) || this.app.keyboard.isPressed(pc.KEY_W) || this.isMobileForward) && (this.isForward = !0),
  1073. (this.app.keyboard.isPressed(pc.KEY_DOWN) || this.app.keyboard.isPressed(pc.KEY_S) || this.isMobileBackward) && (this.isBackward = !0),
  1074. (this.app.keyboard.isPressed(pc.KEY_LEFT) || this.app.keyboard.isPressed(pc.KEY_A) || this.isMobileLeft) && (this.isLeft = !0),
  1075. (this.app.keyboard.isPressed(pc.KEY_RIGHT) || this.app.keyboard.isPressed(pc.KEY_D) || this.isMobileRight) && (this.isRight = !0),
  1076. this.app.keyboard.wasPressed(pc.KEY_SPACE) && this.jump(),
  1077. this.app.keyboard.wasPressed(pc.KEY_R) && this.reload(),
  1078. this.app.keyboard.wasPressed(pc.KEY_F) && this.triggerKeyF(),
  1079. this.app.keyboard.wasPressed(pc.KEY_E) && this.triggerKeyE(),
  1080. this.app.keyboard.wasPressed(pc.KEY_V) && this.player.spray(),
  1081. this.app.keyboard.wasPressed(pc.KEY_X) && (this.leftMouse = !0,
  1082. this.isMouseReleased = !0),
  1083. this.app.keyboard.wasReleased(pc.KEY_X) && (this.leftMouse = !1),
  1084. this.app.keyboard.wasPressed(pc.KEY_L) && (this.app.fire("Mouse:Lock"),
  1085. this.app.fire("Overlay:Pause", !1)),
  1086. this.app.keyboard.wasPressed(pc.KEY_M),
  1087. this.app.keyboard.wasPressed(pc.KEY_J) && this.inspect(),
  1088. this.app.keyboard.wasPressed(pc.KEY_SHIFT) && (this.isFocusing = !0),
  1089. void (this.app.keyboard.wasReleased(pc.KEY_SHIFT) && (this.isFocusing = !1)))))))
  1090. }
  1091. pc.controls.checkGlitches = function(t) {
  1092. this.entity.rigidbody.linearVelocity.length() > 300 || this.currentHeight > 100 ? (this.glitchThreshold > 2 && this.app.fire("Network:Respawn", !0),
  1093. this.glitchThreshold += t) : this.glitchThreshold = pc.math.lerp(this.glitchThreshold, 0, .1)
  1094. }
  1095. }, "noclip", "fly around freely without collision", "n");
  1096. var grenadeSpam = new client.Hack(function (){
  1097. }, function () {
  1098. pc.controls.playerAbilities.throwCooldown = (pc.controls.player.characterName == "Echo")*0.5;
  1099. }, function () {
  1100. pc.controls.playerAbilities.throwCooldown = 10;
  1101. }, "grenadeSpam", "No grenade throw cooldown", "no keybind");
  1102. var antiAFK = new client.Hack(function () {
  1103.  
  1104. }, function () {
  1105. pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.send(["s","w",true]);
  1106. }, function () {
  1107. pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.send(["s","w",false]);
  1108. }, "antiAFK", "prevent you from getting kicked for AFK", "no keybind");
  1109. window.stophacks = new client.Hack(function () {
  1110. client.Hacks.forEach(function (hack) {
  1111. if(!hack.isEnabled) return
  1112. hack.disable();
  1113. document.getElementById(hack.name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  1114. });
  1115. }, function () {
  1116. stophacks.disable();
  1117. document.getElementById(stophacks.name).style.backgroundColor = "rgba(114, 154, 232, 1)";
  1118. }, function () {
  1119.  
  1120. }, "Disable all hacks", "Disable all hacks", "y");
  1121. var invisibility = new client.Hack(function (){
  1122. pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.send=function(e){if(e[0]=="p"){e=["p",999999999999999999999999999999,0,0,0,0]}this.ws&&this.ws.readyState==this.ws.OPEN&&this.ws.send(this.pack.encode(e))}
  1123. }, function () {
  1124.  
  1125. }, function () {
  1126. pc.app.root.findByName("Game").findByName("NetworkManager").script.networkManager.send=function(e){this.ws&&this.ws.readyState==this.ws.OPEN&&this.ws.send(this.pack.encode(e))}
  1127. }, "invisibility", "become invisible and invincible", "u");
  1128. //menu elements
  1129. new client.MenuElement([fly, infJump, speedHacks, playerTeleport, emergencyTeleport, noclip], "Movement", "0%", "0%");
  1130. new client.MenuElement([bulletHacks, infAmmo, serverKill, opGun, grenadeSpam], "Combat", "25%", "0%");
  1131. new client.MenuElement([ESP, spamChat, noRecoil, invisibility], "Render", "50%", "0%");
  1132. new client.MenuElement([instaRespawn, serverCrash, instantWeaponSwitch, noDrown, antiAFK, stophacks], "Game", "75%", "0%");
  1133. //win message
  1134. pc.app.on("Game:Start", function(){
  1135. client.inGame = true;
  1136. try {
  1137. var obj = JSON.parse(localStorage.config);
  1138. client.Hacks.forEach(function (hack) {
  1139. if(hack.name in obj) {
  1140. hack.enable();
  1141. document.getElementById(hack.name).style.backgroundColor = "white";
  1142. }
  1143. });
  1144. } catch (e) {}
  1145. });
  1146. //config
  1147. localStorage.config = localStorage.config || "{\"autoGG\":false}";
  1148. client.MAIN();
  1149. };
  1150. client.init();
  1151.  
  1152. //
  1153. window.client=client;
  1154. });
  1155.  
  1156. //remember run in a userscript environment with @run-at set to document-start
  1157. //venge.io hide playcanvas library bypass (1.2 update)
  1158. //version 2.0
  1159. window._pc = false;
  1160. Object.defineProperty(window, "pc", {
  1161. set (value) {
  1162. if (!window.pc) {
  1163. window._pc = value;
  1164. }
  1165. },
  1166. get () {
  1167. return(window._pc);
  1168. }
  1169. });
Add Comment
Please, Sign In to add comment