krunker.io cheats tampermonkey // ==UserScript== // @name Krunker.IO Aimbot & ESP // @namespace https://nejan.serendibytes.com // @version 1.0.0 // @description Locks aim to the nearest player in krunker.io and shows players behind walls. Also shows a line between you and them. // @author NEJAN // @match *://krunker.io/* // @match *://browserfps.com/* // @exclude *://krunker.io/social* // @exclude *://krunker.io/editor* // @icon https://www.google.com/s2/favicons?domain=krunker.io krunker.io cheats tampermonkey How to get it for free? krunker.io cheats tampermonkey // @grant none // @run-at document-start // @require https://unpkg.com/three@0.150.0/build/three.min.js // ==/UserScript== const THREE = window.THREE; delete window.THREE; const settings = { aimbotEnabled: true, krunker.io cheats tampermonkey How to dowload it? krunker.io cheats tampermonkey aimbotOnRightMouse: false, espEnabled: true, espLines: true, wireframe: false }; const keyToSetting = { KeyB: 'aimbotEnabled', KeyL: 'aimbotOnRightMouse', KeyM: 'espEnabled', krunker.io cheats tampermonkey How to get it? krunker.io cheats tampermonkey KeyN: 'espLines', KeyK: 'wireframe' }; const gui = createGUI(); let scene; const x = { window: window, krunker.io cheats tampermonkey How to use it? krunker.io cheats tampermonkey document: document, querySelector: document.querySelector, consoleLog: console.log, ReflectApply: Reflect.apply, ArrayPrototype: Array.prototype, ArrayPush: Array.prototype.push, ObjectPrototype: Object.prototype, clearInterval: window.clearInterval, setTimeout: window.setTimeout, reToString: RegExp.prototype.toString, krunker.io cheats tampermonkey How to dowload it? krunker.io cheats tampermonkey indexOf: String.prototype.indexOf, requestAnimationFrame: window.requestAnimationFrame }; x.consoleLog( 'Waiting to inject...' ); const proxied = function ( object ) { // [native code] krunker.io cheats tampermonkey How to use it? krunker.io cheats tampermonkey try { if ( typeof object === 'object' && typeof object.parent === 'object' && object.parent.type === 'Scene' && object.parent.name === 'Main' ) { x.consoleLog( 'Found Scene!' ) scene = object.parent; x.ArrayPrototype.push = x.ArrayPush; krunker.io cheats tampermonkey How to get it? krunker.io cheats tampermonkey } } catch ( error ) {} return x.ArrayPush.apply( this, arguments ); } const tempVector = new THREE.Vector3(); krunker.io cheats tampermonkey How to get it for free? krunker.io cheats tampermonkey const tempObject = new THREE.Object3D(); tempObject.rotation.order = 'YXZ'; const geometry = new THREE.EdgesGeometry( new THREE.BoxGeometry( 5, 15, 5 ).translate( 0, 7.5, 0 ) ); const material = new THREE.RawShaderMaterial( { vertexShader: ` attribute vec3 position; krunker.io cheats tampermonkey How to get it for free? krunker.io cheats tampermonkey uniform mat4 projectionMatrix; uniform mat4 modelViewMatrix; void main() { gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); gl_Position.z = 1.0; } krunker.io cheats tampermonkey PasteShr krunker.io cheats tampermonkey `, fragmentShader: ` void main() { gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 ); } krunker.io cheats tampermonkey How to dowload it? krunker.io cheats tampermonkey ` } ); const line = new THREE.LineSegments( new THREE.BufferGeometry(), material ); line.frustumCulled = false; const linePositions = new THREE.BufferAttribute( new Float32Array( 100 * 2 * 3 ), 3 ); line.geometry.setAttribute( 'position', linePositions ); krunker.io cheats tampermonkey How to use it? krunker.io cheats tampermonkey let injectTimer = null; function animate() { x.requestAnimationFrame.call( x.window, animate ); if ( ! scene && ! injectTimer ) { const el = x.querySelector.call( x.document, '#loadingBg' ); krunker.io cheats tampermonkey How to use it? krunker.io cheats tampermonkey if ( el && el.style.display === 'none' ) { x.consoleLog( 'Inject timer started!' ); injectTimer = x.setTimeout.call( x.window, () => { x.consoleLog( 'Injected!' ); x.ArrayPrototype.push = proxied; }, 2e3 ); krunker.io cheats tampermonkey PasteShr krunker.io cheats tampermonkey } } const players = []; let myPlayer; krunker.io cheats tampermonkey How to use it? krunker.io cheats tampermonkey for ( let i = 0; i < scene.children.length; i ++ ) { const child = scene.children[ i ]; if ( child.type === 'Object3D' ) { try { if ( child.children[ 0 ].children[ 0 ].type === 'PerspectiveCamera' ) { krunker.io cheats tampermonkey PasteShr krunker.io cheats tampermonkey myPlayer = child; } else { players.push( child ); } } catch ( err ) {} krunker.io cheats tampermonkey How to get it for free? krunker.io cheats tampermonkey } else if ( child.material ) { child.material.wireframe = settings.wireframe; } } if ( ! myPlayer ) { krunker.io cheats tampermonkey How to get it for free? krunker.io cheats tampermonkey x.consoleLog( 'Player not found, finding new scene.' ); x.ArrayPrototype.push = proxied; return; } let counter = 0; let targetPlayer; let minDistance = Infinity; krunker.io cheats tampermonkey How to get it? krunker.io cheats tampermonkey tempObject.matrix.copy( myPlayer.matrix ).invert() for ( let i = 0; i < players.length; i ++ ) { const player = players[ i ]; if ( ! player.box ) { const box = new THREE.LineSegments( geometry, material ); krunker.io cheats tampermonkey PasteShr krunker.io cheats tampermonkey box.frustumCulled = false; player.add( box ); player.box = box; } if ( player.position.x === myPlayer.position.x && player.position.z === myPlayer.position.z ) { krunker.io cheats tampermonkey How to get it? krunker.io cheats tampermonkey player.box.visible = false; if ( line.parent !== player ) { player.add( line ); } continue; krunker.io cheats tampermonkey How to get it? krunker.io cheats tampermonkey } linePositions.setXYZ( counter ++, 0, 10, - 5 ); tempVector.copy( player.position ); tempVector.y += 9; tempVector.applyMatrix4( tempObject.matrix ); linePositions.setXYZ( counter ++, krunker.io cheats tampermonkey How to dowload it? krunker.io cheats tampermonkey tempVector.x, tempVector.y, tempVector.z ); player.visible = settings.espEnabled || player.visible; player.box.visible = settings.espEnabled; const distance = player.position.distanceTo( myPlayer.position ); krunker.io cheats tampermonkey How to use it? krunker.io cheats tampermonkey if ( distance < minDistance ) { targetPlayer = player; minDistance = distance; } } linePositions.needsUpdate = true; krunker.io cheats tampermonkey How to get it for free? krunker.io cheats tampermonkey line.geometry.setDrawRange( 0, counter ); line.visible = settings.espLines; if ( settings.aimbotEnabled === false || ( settings.aimbotOnRightMouse && ! rightMouseDown ) || targetPlayer === undefined ) { return; } krunker.io cheats tampermonkey How to get it for free? krunker.io cheats tampermonkey tempVector.setScalar( 0 ); targetPlayer.children[ 0 ].children[ 0 ].localToWorld( tempVector ); tempObject.position.copy( myPlayer.position ); tempObject.lookAt( tempVector ); myPlayer.children[ 0 ].rotation.x = - tempObject.rotation.x; myPlayer.rotation.y = tempObject.rotation.y + Math.PI; krunker.io cheats tampermonkey PasteShr krunker.io cheats tampermonkey } const el = document.createElement( 'div' ); el.innerHTML = `