// ==UserScript==
// @name Voxiom.IO Aimbot, ESP from Kakoncheater
// @namespace http://tampermonkey.net/
// @version 4.9.1-Bypass-Kakoncheater
// @description Cheat for Voxiom.io Modified/bypassed
// @author Kakoncheater
// @match *://voxiom.io/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=voxiom.io
// @grant none
// @run-at document-start
// @antifeature ads
// @require https://unpkg.com/[email protected]/build/three.min.js
// @require https://cdn.jsdelivr.net/npm/[email protected]
// ==/UserScript==
const THREE = window.THREE;
delete window.THREE;
const SETTINGS_STORAGE_KEY = 'voxiomModSettings_Kakoncheater_v1';
const settings = {
showPlayers: true,
showPlayerNames: true,
showItems: true,
showItemNames: false,
showBlocks: true,
showLines: true,
showOres: true,
worldWireframe: false,
aimbotEnabled: true,
aimbotOnRightMouse: false,
aimBehindWalls: false,
aimHeight: 0.9,
autoFire: true,
aimAtEveryone: false,
createdBy: 'Kakoncheater',
};
const keyToSetting = {
'KeyV': 'showPlayers',
'KeyI': 'showItems',
'KeyN': 'showItemNames',
'KeyL': 'showBlocks',
'KeyB': 'aimbotEnabled',
'KeyT': 'aimbotOnRightMouse',
'KeyK': 'autoFire',
'Semicolon': 'worldWireframe',
'Comma': 'showOres'
};
const aimbotBlacklist = {
'kakoncheater': true
};
function saveSettings() {
const savableSettings = {};
for (const key in settings) {
if (Object.hasOwnProperty.call(settings, key) && typeof settings[key] !== 'function' && key !== 'createdBy') {
savableSettings[key] = settings[key];
}
}
try {
if (Object.keys(savableSettings).length > 0) {
localStorage.setItem(SETTINGS_STORAGE_KEY, JSON.stringify(savableSettings));
}
} catch (e) {}
}
function loadSettings() {
try {
const storedSettings = localStorage.getItem(SETTINGS_STORAGE_KEY);
if (storedSettings) {
const parsedSettings = JSON.parse(storedSettings);
for (const key in parsedSettings) {
if (Object.hasOwnProperty.call(settings, key) && typeof settings[key] !== 'function' && key !== 'createdBy') {
settings[key] = parsedSettings[key];
}
}
}
} catch (e) {
localStorage.removeItem(SETTINGS_STORAGE_KEY);
}
}
loadSettings();
const shadowHost = document.createElement( 'div' );
Object.assign( shadowHost.style, {
position: 'absolute',
top: 0,
left: 0,
width: '100%',
height: '100%',
pointerEvents: 'none'
} );
const shadow = shadowHost.attachShadow( { mode: 'open' } );
let enableDocumentOverride = false;
function setDocumentOverride( prop, value ) {
const old = document[ prop ];
Object.defineProperty( document, prop, {
get() {
return enableDocumentOverride ? value : old;
},
writeable: true,
configurable: true
} );
}
let gui;
let controllers;
function initGui() {
const settingToKey = {};
for ( const key in keyToSetting ) {
settingToKey[ keyToSetting[ key ] ] = key;
}
const keyOverride = {
'Semicolon': ';',
'Comma': ','
};
setDocumentOverride( 'body', shadow );
setDocumentOverride( 'head', shadow );
setDocumentOverride( 'querySelector', () => null );
enableDocumentOverride = true;
gui = new lil.GUI();
enableDocumentOverride = false;
controllers = {};
for ( const key in settings ) {
let name;
if (key === 'createdBy') {
name = 'Bypassed By';
} else {
name = fromCamel( key );
let shortKey = settingToKey[ key ];
if ( shortKey ) {
if ( keyOverride[ shortKey ] ) shortKey = keyOverride[ shortKey ];
else if ( shortKey.startsWith( 'Key' ) ) shortKey = shortKey.slice( 3 );
name = `[${shortKey}] ${name}`;
}
}
controllers[ key ] = gui.add( settings, key ).name( name );
if (key !== 'createdBy') {
controllers[key].listen();
controllers[key].onChange(saveSettings);
} else {
controllers[key].disable();
}
}
if (controllers.aimHeight) controllers.aimHeight.min( 0 ).max( 1.5 ).step(0.05);
if (controllers.aimAtEveryone) addDescription( controllers.aimAtEveryone, 'Enable this to make aimbot work in Survival mode.' );
const titleEl = gui.domElement.querySelector( '.title' );
if (titleEl) {
titleEl.innerText = `[Insert] Controls`;
}
}
function addDescription( controller, text ) {
const div = document.createElement( 'div' );
div.className = 'my-lil-gui-desc';
div.innerText = text;
if (controller && controller.domElement && controller.domElement.querySelector('.name')) {
controller.domElement.querySelector( '.name' ).appendChild( div );
}
}
function fromCamel( text ) {
if (typeof text !== 'string') return '';
const result = text.replace( /([A-Z])/g, ' $1' );
return result.charAt( 0 ).toUpperCase() + result.slice( 1 );
}
let isRightDown = false;
window.addEventListener( 'mousedown', event => {
if ( event.button === 2 ) isRightDown = true;
} );
window.addEventListener( 'mouseup', event => {
if ( event.button === 2 ) isRightDown = false;
} );
const geometry = new THREE.EdgesGeometry( new THREE.BoxGeometry( 1, 1, 1 ).translate( 0, 0.5, 0 ) );
const camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 0.1, 1000 );
const renderer = new THREE.WebGLRenderer( {
alpha: true,
antialias: true
} );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
renderer.domElement.id = 'overlayCanvas';
window.addEventListener( 'resize', () => {
renderer.setSize( window.innerWidth, window.innerHeight );
if (camera) {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
}
} );
const colors = {
enemy: 'red',
team: 'blue',
block: 'green',
item: 'gold'
};
for ( const key in colors ) {
const color = new THREE.Color( colors[ key ] );
color.rawColor = colors[ key ];
colors[ key ] = color;
}
function MyMaterial( color ) {
return new THREE.RawShaderMaterial( {
vertexShader: `
attribute vec3 position;
uniform mat4 projectionMatrix;
uniform mat4 modelViewMatrix;
void main() {
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
gl_Position.z = 1.0;
}
`,
fragmentShader: `
precision mediump float;
uniform vec3 color;
void main() {
gl_FragColor = vec4( color, 1.0 );
}
`,
uniforms: {
color: { value: color }
}
} );
}
let target;
let gameCamera;
let projectionMatrixKey;
let matrixWorldKey;
let elementsKey;
function inject() {
Object.defineProperty( Object.prototype, 'overrideMaterial', {
set( value ) {
setTimeout( () => checkScene( this ), 0 );
this._overrideMaterial = value;
},
get() {
return this._overrideMaterial;
},
configurable: true
} );
Object.defineProperty( Object.prototype, 'far', {
set( value ) {
this._far = value;
},
get() {
checkCamera( this );
return this._far;
},
configurable: true
} );
}
const postRunName = Math.random().toString(32).slice(0, 10).toUpperCase();
window[postRunName] = function () {
const CTX = CanvasRenderingContext2D.prototype;
CTX.fillText = new Proxy( CTX.fillText, {
apply( target, ctx, [ text ] ) {
if (ctx && ctx.canvas) {
ctx.canvas.lastText = text;
}
return Reflect.apply( ...arguments );
}
} );
const WebGL = WebGLRenderingContext.prototype;
const blocks = [
[ 0, 3 ], [ 1, 3 ], [ 4, 2 ], [ 5, 2 ], [ 7, 3 ],
[ 2, 2 ],
[ 0, 4 ], [ 1, 4 ], [ 2, 4 ],
[ 0, 5 ], [ 1, 5 ], [ 2, 5 ],
[ 0, 6 ], [ 1, 6 ], [ 2, 6 ]
];
const blockCheck = blocks.map( ( [ x, y ] ) => `( p.x == ${x.toFixed( 1 )} && p.y == ${y.toFixed( 1 )} )` ).join( ' || ' );
WebGL.shaderSource = new Proxy( WebGL.shaderSource, {
apply( target, thisArgs, args ) {
let [ shader, src ] = args;
if ( src.indexOf( 'vRealUv = realUv;' ) > - 1 ) {
src = src.replace( 'void main()', `
uniform bool showOres;
uniform float currTime;
void main()` )
.replace( 'vRealUv = realUv;', `vRealUv = realUv;
float atlasDim = 16.0;
float tilePosX = max(0.01, min(0.99, fract(vRealUv.z)));
float tilePosY = max(0.01, min(0.99, fract(vRealUv.w)));
vec2 uv = vec2(vRealUv.x * (1.0 / atlasDim) + tilePosX * (1.0 / atlasDim), vRealUv.y * (1.0 / atlasDim) + tilePosY * (1.0 / atlasDim));
if ( showOres ) {
vec2 p = uv * ( atlasDim - 1.0 );
p.x = fract( p.x ) > 0.5 ? ceil( p.x ) : floor( p.x );
p.y = fract( p.y ) > 0.5 ? ceil( p.y ) : floor( p.y );
if ( ${blockCheck} ) {
gl_Position.z = 0.99;
vAo += 0.25 + abs( sin( currTime * 2.0 ) ) * 0.5;
}
}
` );
if (shader) shader.isChunkShader = true;
}
args[ 1 ] = src;
return Reflect.apply( ...arguments );
}
} );
WebGL.attachShader = new Proxy( WebGL.attachShader, {
apply( target, thisArgs, [ program, shader ] ) {
if ( shader && shader.isChunkShader && program ) program.isChunkProgram = true;
return Reflect.apply( ...arguments );
}
} );
WebGL.useProgram = new Proxy( WebGL.useProgram, {
apply( target, gl, [ program ] ) {
Reflect.apply( ...arguments );
if ( program && program.isChunkProgram ) {
if ( ! program.initialized ) {
program.uniforms = {
showOres: gl.getUniformLocation( program, 'showOres' ),
currTime: gl.getUniformLocation( program, 'currTime' )
};
program.initialized = true;
}
if (program.uniforms && program.uniforms.showOres && program.uniforms.currTime) {
gl.uniform1i( program.uniforms.showOres, settings.showOres );
gl.uniform1f( program.uniforms.currTime, performance.now() / 1000 );
}
}
}
} );
const props = [ 'far', 'overrideMaterial' ];
document.addEventListener = new Proxy( document.addEventListener, {
apply( target, thisArgs, args ) {
if ( args[0] && args[ 0 ].startsWith( 'vis' ) ) {
for ( const prop of props ) delete Object.prototype[ prop ];
const old = window.setInterval;
window.setInterval = function () {};
setTimeout( function () {
window.setInterval = old;
inject();
}, 0 );
}
return Reflect.apply( ...arguments );
}
} );
Object.getOwnPropertyNames = new Proxy( Object.getOwnPropertyNames, {
apply( target, thisArgs, [ object ] ) {
const list = Reflect.apply( ...arguments );
if ( object === Object.prototype ) {
props.forEach( prop => removeFromList( list, prop ) );
}
return list;
}
} );
Object.prototype.hasOwnProperty = new Proxy( Object.prototype.hasOwnProperty, {
apply( target, thisArgs, [ prop ] ) {
if ( props.includes( prop ) ) return false;
return Reflect.apply( ...arguments );
}
} );
Object.getOwnPropertyDescriptor = new Proxy( Object.getOwnPropertyDescriptor, {
apply( target, thisArgs, [ object, prop ] ) {
if ( object === Object.prototype && props.includes( prop ) ) return undefined;
return Reflect.apply( ...arguments );
}
} );
Object.getOwnPropertyDescriptors = new Proxy( Object.getOwnPropertyDescriptors, {
apply( target, thisArgs, [ object ] ) {
const result = Reflect.apply( ...arguments );
if ( object === Object.prototype ) {
props.forEach( prop => ( delete result[ prop ] ) );
}
return result;
}
} );
addElements();
tryToAddElements();
};
function removeQueries() {
const url = new URL( window.location.href );
url.searchParams.delete( 'showAd' );
url.searchParams.delete( 'scriptVersion' );
window.history.pushState( null, '', url.href );
}
function removeFromList( list, item ) {
const index = list.indexOf( item );
if ( index > - 1 ) list.splice( index, 1 );
}
const hooked = new WeakMap();
function checkCamera( object ) {
if ( !object || object instanceof THREE.PerspectiveCamera || hooked.get( object ) ) return;
let foundProjectionMatrix = false;
for ( const key in object ) {
try {
const value = object[ key ];
if ( value && typeof value === 'object' ) {
const prop = Object.keys( value )[ 0 ];
if (prop && value[prop]) {
const array = value[ prop ];
if ( Array.isArray( array ) && array.length >= 12 && array[ 11 ] === - 1 ) {
elementsKey = prop;
projectionMatrixKey = key;
foundProjectionMatrix = true;
}
}
} else if ( typeof value === 'function' ) {
try {
const match = /verse'\]\(this\['([^']+)'\]\);/.exec( value.toString() );
if ( match ) {
matrixWorldKey = match[ 1 ];
}
} catch (e) {}
}
} catch (e) {}
}
if ( ! foundProjectionMatrix ) return;
hooked.set( object, true );
object[ projectionMatrixKey ] = new Proxy( object[ projectionMatrixKey ], {
get() {
if (gameCamera !== object) gameCamera = object;
if (camera && object.near !== undefined) {
setTransform( camera, object );
camera.near = object.near;
camera.far = object.far;
camera.aspect = object.aspect;
camera.fov = object.fov;
camera.updateProjectionMatrix();
}
return Reflect.get( ...arguments );
}
} );
}
function setTransform( targetObject, sourceObject ) {
if (!sourceObject || !matrixWorldKey || !elementsKey || !sourceObject[matrixWorldKey] || !sourceObject[matrixWorldKey][elementsKey] || !targetObject) {
return;
}
const matrix = new THREE.Matrix4().fromArray( sourceObject[ matrixWorldKey ][ elementsKey ] );
matrix.decompose( targetObject.position, targetObject.quaternion, targetObject.scale );
}
let worldScene;
let childrenKey;
function checkScene( scene ) {
if ( !scene || scene instanceof THREE.Scene || scene === worldScene ) return;
for ( const key in scene ) {
const children = scene[ key ];
if ( Array.isArray( children ) && children.length === 9 ) {
for ( const child of children ) {
if (!child || typeof child !== 'object' || !child.hasOwnProperty( 'uuid' ) ) return;
}
worldScene = scene;
childrenKey = key;
return;
}
}
}
function isBlock( entity ) {
try {
if (!entity || !childrenKey || !entity[childrenKey] || !entity[childrenKey][0] || !entity[childrenKey][0].geometry || !entity[childrenKey][0].geometry.index) return false;
const mesh = entity[ childrenKey ][ 0 ];
return mesh.geometry.index.count === 36;
} catch {
return false;
}
}
function isPlayer( entity ) {
try {
if (!entity || !childrenKey || !entity[childrenKey]) return false;
if (entity[childrenKey].length > 2) return true;
if (entity[childrenKey].length > 0 && entity[childrenKey][0] && entity[childrenKey][0].geometry) {
if (entity[childrenKey].length === 1) {
return entity[childrenKey][0].geometry.attributes.position.count > 50;
}
if (entity[childrenKey].length === 2 && (!entity[childrenKey][1] || !entity[childrenKey][1].geometry)) {
return true;
}
}
return false;
} catch {
return false;
}
}
function isEnemy( entity ) {
if (!entity || !childrenKey || !entity[childrenKey]) return true;
for ( const child of entity[ childrenKey ] ) {
try {
if (child && child.material && child.material.map && child.material.map.image) {
const image = child.material.map.image;
if ( image instanceof HTMLCanvasElement && typeof image.lastText === 'string') {
entity.username = image.lastText;
return false;
}
}
} catch {}
}
return true;
}
const chunkMaterial = new THREE.MeshNormalMaterial();
const raycaster = new THREE.Raycaster();
const direction = new THREE.Vector3();
const line = new THREE.LineSegments( new THREE.BufferGeometry(), MyMaterial( colors.enemy ) );
line.frustumCulled = false;
const linePositions = new THREE.BufferAttribute( new Float32Array( 200 * 2 * 3 ), 3 );
line.geometry.setAttribute( 'position', linePositions );
function animate() {
window.requestAnimationFrame( animate );
if ( ! worldScene || !worldScene[childrenKey] || !camera ) return;
const now = Date.now();
const scene = new THREE.Scene();
const rawChunks = worldScene[childrenKey]?.[4]?.[childrenKey];
if (!rawChunks) return;
const chunks = [];
for ( const chunk of rawChunks ) {
if ( ! chunk || !chunk.geometry ) continue;
let myChunk = chunk.myChunk;
if ( ! myChunk ) {
if (!chunk.geometry.attributes || !chunk.geometry.attributes.position || !chunk.geometry.index) continue;
const positionArray = chunk.geometry.attributes.position.array;
if ( positionArray.length === 0 ) continue;
const geometry = new THREE.BufferGeometry();
geometry.setAttribute( 'position', new THREE.BufferAttribute( positionArray, 3 ) );
geometry.setIndex( new THREE.BufferAttribute( chunk.geometry.index.array, 1 ) );
geometry.computeVertexNormals();
if (geometry.boundingBox === null) geometry.computeBoundingBox();
myChunk = new THREE.Mesh( geometry, chunkMaterial );
myChunk.box = new THREE.Box3();
chunk.myChunk = myChunk;
}
if ( chunk.material ) chunk.material.wireframe = settings.worldWireframe;
if (myChunk) {
setTransform( myChunk, chunk );
myChunk.updateMatrixWorld();
if (myChunk.geometry && myChunk.geometry.boundingBox && myChunk.box) {
myChunk.box.copy( myChunk.geometry.boundingBox ).applyMatrix4( myChunk.matrixWorld );
}
chunks.push( myChunk );
}
}
chunks.sort( ( a, b ) => {
if (!camera || !camera.position || !a || !a.position || !b || !b.position) return 0;
return camera.position.distanceTo( a.position ) - camera.position.distanceTo( b.position );
} );
let lineCounter = 0;
let lineOrigin;
if (camera && camera.localToWorld) {
lineOrigin = camera.localToWorld( new THREE.Vector3( 0, 4, - 10 ) );
} else {
lineOrigin = new THREE.Vector3();
}
const entities = worldScene[childrenKey]?.[5]?.[childrenKey];
if (!entities) return;
let targetPlayer;
let minDistance = Infinity;
for ( let i = 0; i < entities.length; i ++ ) {
const entity = entities[ i ];
if ( !entity[childrenKey] || entity[ childrenKey ].length === 0 ) continue;
try {
if (entity[childrenKey] && entity[childrenKey].length === 1) {
const firstChild = entity[childrenKey][0];
if (firstChild && firstChild.geometry && firstChild.geometry.attributes &&
firstChild.geometry.attributes.position && firstChild.geometry.attributes.position.count < 10) {
continue;
}
}
} catch {}
if ( ! entity.myContainer ) {
entity.myContainer = new THREE.Object3D();
entity.discoveredAt = now;
entity.standingScaleY = undefined;
}
setTransform( entity.myContainer, entity );
if ( now - entity.discoveredAt < 500 ) continue;
if ( ! entity.myBox ) {
const box = new THREE.LineSegments( geometry );
if ( isPlayer( entity ) ) {
entity.isPlayer = true;
entity.isEnemy = isEnemy( entity );
box.material = MyMaterial( entity.isEnemy ? colors.enemy : colors.team );
box.scale.set( 0.5, 1.25, 0.5 );
} else {
entity.isBlock = isBlock( entity );
box.material = MyMaterial( entity.isBlock ? colors.block : colors.item );
box.scale.set( 0.25, 0.1, 0.25 );
if ( ! entity.isBlock ) {
const sprite = createSprite( entity.name || "Unknown Item", colors.item.rawColor );
sprite.position.y = sprite.scale.y + 0.2;
if (entity.myContainer) entity.myContainer.add( sprite );
entity.mySprite = sprite;
}
}
entity.myBox = box;
if (entity.myContainer) entity.myContainer.add( entity.myBox );
}
if ( entity.isPlayer ) {
if (entity.myBox) entity.myBox.visible = settings.showPlayers;
if (entity.myContainer && typeof entity.myContainer.scale.y === 'number' && !isNaN(entity.myContainer.scale.y)) {
const currentScaleY = entity.myContainer.scale.y;
if (currentScaleY > 0.4 && currentScaleY < 2.0) { // Plausible range for player model Y scale
if (typeof entity.standingScaleY === 'undefined' || currentScaleY > entity.standingScaleY) {
entity.standingScaleY = currentScaleY;
}
}
}
if (typeof entity.standingScaleY === 'undefined' && entity.myContainer && typeof entity.myContainer.scale.y === 'number' && !isNaN(entity.myContainer.scale.y)) {
if(entity.myContainer.scale.y > 0.4 && entity.myContainer.scale.y < 2.0) {
entity.standingScaleY = entity.myContainer.scale.y;
}
}
if (typeof entity.standingScaleY === 'undefined') {
entity.standingScaleY = 1.0;
}
entity.effectiveAimHeight = settings.aimHeight;
if (typeof entity.standingScaleY === 'number' && entity.standingScaleY > 0.4 &&
entity.myContainer && typeof entity.myContainer.scale.y === 'number' && !isNaN(entity.myContainer.scale.y)) {
const playerModelScaleY = entity.myContainer.scale.y;
if (playerModelScaleY > 0.1 && playerModelScaleY < entity.standingScaleY) {
const crouchThresholdFactor = 0.90;
if (playerModelScaleY < (entity.standingScaleY * crouchThresholdFactor)) {
let crouchRatio = playerModelScaleY / entity.standingScaleY;
crouchRatio = Math.max(0.5, Math.min(1.0, crouchRatio));
entity.effectiveAimHeight = settings.aimHeight * crouchRatio;
entity.effectiveAimHeight = Math.max(entity.effectiveAimHeight, 0.3);
}
}
}
} else if ( entity.isBlock ) {
if (entity.myBox) entity.myBox.visible = settings.showBlocks;
} else {
if (entity.myBox) entity.myBox.visible = settings.showItems;
if (entity.mySprite) entity.mySprite.visible = settings.showItemNames;
}
if ( typeof entity.visible === 'boolean' && ! entity.visible ) continue;
if (entity.myContainer && scene && typeof scene.add === 'function') {
scene.add( entity.myContainer );
}
if ( ! entity.isPlayer ) continue;
const isBlacklisted = typeof entity.username === 'string' && aimbotBlacklist[ entity.username.toLowerCase() ];
const isAimbotTarget = !isBlacklisted && (settings.aimAtEveryone || entity.isEnemy);
if ( isAimbotTarget && lineCounter < 200 * 2 && settings.showLines) {
if (entity.myContainer && entity.myContainer.position && lineOrigin && linePositions) {
linePositions.setXYZ( lineCounter ++, lineOrigin.x, lineOrigin.y, lineOrigin.z );
const p = entity.myContainer.position;
linePositions.setXYZ( lineCounter ++, p.x, p.y + 1.25, p.z );
}
}
if ( isAimbotTarget !== entity.wasAimbotTarget ) {
updatePlayerColors( entity, isAimbotTarget );
entity.wasAimbotTarget = isAimbotTarget;
}
if ( entity.usernameSprite ) entity.usernameSprite.visible = settings.showPlayerNames;
const shouldExecuteAimbot = settings.aimbotEnabled && ( ! settings.aimbotOnRightMouse || isRightDown );
if ( ! shouldExecuteAimbot || ! gameCamera || !camera || !camera.position ) continue;
if ( isAimbotTarget && (now - (entity.discoveredAt || 0) > 1000) ) aimbot: {
if (!entity.myContainer || !entity.myContainer.position) break aimbot;
const entPos = entity.myContainer.position.clone();
let aimHeightToUse = settings.aimHeight;
if (typeof entity.effectiveAimHeight === 'number' && !isNaN(entity.effectiveAimHeight)) {
aimHeightToUse = entity.effectiveAimHeight;
}
entPos.y += aimHeightToUse;
if ( camera.position && Math.hypot( entPos.x - camera.position.x, entPos.z - camera.position.z ) > 1 ) {
const distance = camera.position.distanceTo( entPos );
if ( distance < minDistance ) {
if ( ! settings.aimBehindWalls ) {
direction.subVectors( entPos, camera.position ).normalize();
raycaster.set( camera.position, direction );
for ( const chunk of chunks ) {
if (!chunk.box) continue;
if ( ! raycaster.ray.intersectsBox( chunk.box ) ) continue;
const hit = raycaster.intersectObject( chunk )[ 0 ];
if ( hit && hit.distance < distance ) break aimbot;
}
}
targetPlayer = entity;
minDistance = distance;
}
}
}
}
if ( targetPlayer && targetPlayer.myContainer ) {
const p = targetPlayer.myContainer.position;
let actualAimHeightForTarget = settings.aimHeight;
if (typeof targetPlayer.effectiveAimHeight === 'number' && !isNaN(targetPlayer.effectiveAimHeight)) {
actualAimHeightForTarget = targetPlayer.effectiveAimHeight;
}
lookAt( gameCamera, p.x, p.y + actualAimHeightForTarget, p.z );
if ( settings.autoFire ) setFire( true );
} else {
setFire( false );
}
if ( settings.showLines ) {
if (line && line.geometry && linePositions) {
linePositions.needsUpdate = true;
line.geometry.setDrawRange( 0, lineCounter );
if (scene && typeof scene.add === 'function') scene.add( line );
}
}
if (renderer && scene && camera) {
renderer.render( scene, camera );
}
}
function lookAt( object, x, y, z ) {
if (!object || !object.rotation || !object[matrixWorldKey] || !object[matrixWorldKey][elementsKey]) return;
const dummy = new THREE.PerspectiveCamera();
setTransform( dummy, object );
dummy.lookAt( x, y, z );
if (dummy.rotation.x !== undefined && dummy.rotation.y !== undefined && dummy.rotation.z !== undefined) {
object.rotation.set(
dummy.rotation.x,
dummy.rotation.y,
dummy.rotation.z,
dummy.rotation.order
);
}
}
function updatePlayerColors( entity, isAimbotTarget ) {
if (!entity || !entity.myContainer) return;
const color = isAimbotTarget ? colors.enemy : colors.team;
if (entity.myBox && entity.myBox.material && entity.myBox.material.uniforms && entity.myBox.material.uniforms.color) {
entity.myBox.material.uniforms.color.value = color;
}
if ( entity.usernameSprite ) {
entity.myContainer.remove( entity.usernameSprite );
entity.usernameSprite = null;
}
if ( entity.username ) {
const sprite = createSprite( entity.username, color.rawColor );
sprite.position.y = sprite.scale.y + 1.25;
entity.myContainer.add( sprite );
entity.usernameSprite = sprite;
}
}
function createSprite( text, bgColor = '#000' ) {
const fontSize = 40;
const strokeSize = 10;
const font = 'normal ' + fontSize + 'px Arial';
const canvas = document.createElement( 'canvas' );
const ctx = canvas.getContext( '2d' );
if (!ctx) return new THREE.Sprite();
ctx.font = font;
canvas.width = ctx.measureText( text ).width + strokeSize * 2;
canvas.height = fontSize + strokeSize * 2;
ctx.fillStyle = bgColor;
ctx.fillRect( 0, 0, canvas.width, canvas.height );
ctx.font = font;
ctx.fillStyle = 'white';
ctx.textBaseline = 'top';
ctx.textAlign = 'left';
ctx.lineWidth = strokeSize;
ctx.strokeText( text, strokeSize, strokeSize );
ctx.fillText( text, strokeSize, strokeSize );
const material = new THREE.SpriteMaterial( {
map: new THREE.CanvasTexture( canvas ),
sizeAttenuation: false,
fog: false,
depthTest: false,
depthWrite: false
} );
const sprite = new THREE.Sprite( material );
sprite.center.y = 0;
sprite.scale.y = 0.035;
sprite.scale.x = sprite.scale.y * canvas.width / canvas.height;
return sprite;
}
let lastFireStatus = false;
function setFire( bool ) {
if ( lastFireStatus === bool ) return;
lastFireStatus = bool;
const type = bool ? 'mousedown' : 'mouseup';
try {
document.dispatchEvent( new MouseEvent( type, { button: 2 } ) );
document.dispatchEvent( new MouseEvent( type, { button: 0 } ) );
} catch (e) {}
}
window.requestAnimationFrame( animate );
const value = parseInt( new URLSearchParams( window.location.search ).get( 'showAd' ), 16 );
let shouldShowAd = false;
if (!shouldShowAd) {
try {
Object.defineProperty(Object.prototype, 'amogus', {
value: 69,
configurable: true
});
delete Object.prototype.amogus;
let found = false;
for (let i = 0, l = document.scripts.length; i < l; i++) {
const script = document.scripts[i];
if (!script) continue;
let code = script.innerHTML;
if (code.indexOf(`function DUWAC`) > -1) {
found = true;
code = `
setTimeout(window["${postRunName}"],0);
function hijackDuwac(duwac, args) {
let js = duwac.toString();
js = js.replace('return hijackDuwac(DUWAC, arguments);', '');
const toReplace = [
['DUWAC', 'UWUWAC'],
['y=I', 'y=function(){},_1=I'],
['Z=I', 'Z=function(){},_2=I'],
['W=I', 'W=function(){},_3=I'],
['!==Z', '!==Z&&false']
];
for (let [from, to] of toReplace) {
if (js.indexOf(from) > -1) {
js = js.replace(from, to);
} else {}
}
js = duwac + '\\n' + js + '\\nUWUWAC(' + Array.from(args).join(',') + ')';
const scriptElement = document.createElement('script');
scriptElement.innerHTML = js;
const currentScriptElement = document.currentScript;
if (currentScriptElement && currentScriptElement.parentNode) {
currentScriptElement.parentNode.insertBefore(scriptElement, currentScriptElement);
} else if (document.head) {
document.head.appendChild(scriptElement);
}
}
` + code.replace(`{`, `{return hijackDuwac(DUWAC, arguments);`);
script.innerHTML = code;
break;
}
}
if (!found) {
if (window[postRunName]) setTimeout(window[postRunName], 0);
}
removeQueries();
} catch (error) {
if (document.documentElement) {
document.documentElement.innerHTML = `
<h2>Injecting script... (Bypassed Ad)</h2>
<p>Please be patient while the script injects itself. Mutliple page reloads might occur. Don't panic!</p>
<i>Usually takes a few seconds. But in rare cases, it can even take a few minutes.</i>
<br><br>
<div><b>Error during injection (if any): </b><span>${error.message}</span></div>
<pre>${(error.stack || '')}</pre>
`;
}
}
}
const el = document.createElement( 'div' );
el.innerHTML = `<style>
.dialog, .dialog *, .msg { pointer-events: all; }
.lil-gui { pointer-events: auto !important; z-index: 1000000 !important; }
.lil-gui * { pointer-events: auto !important; }
#overlayCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.dialog { position: absolute; left: 50%; top: 50%; padding: 20px; background: rgba(0, 50, 0, 0.8); border: 6px solid rgba(0, 0, 0, 0.2); color: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 10000px rgba(0, 0, 0, 0.3); text-align: center; z-index: 999999; }
.dialog * { color: #fff; }
.close { position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; opacity: 0.5; cursor: pointer; }
.close:before, .close:after { content: ' '; position: absolute; left: 50%; top: 50%; width: 100%; height: 20%; transform: translate(-50%, -50%) rotate(-45deg); background: #fff; }
.close:after { transform: translate(-50%, -50%) rotate(45deg); }
.close:hover { opacity: 1; }
.dialog .btn { cursor: pointer; padding: 0.5em; background: hsla(0, 67%, 44%, 0.7); border: 3px solid rgba(0, 0, 0, 0.2); display: block; text-decoration: none; }
.dialog .btn:active { transform: scale(0.95); }
.msg { position: absolute; left: 10px; bottom: 10px; background: rgba(50, 0, 0, 0.8); color: #fff; padding: 15px; animation: msg 0.5s forwards, msg 0.5s reverse forwards 3s; z-index: 999999; pointer-events: none; border-radius: 5px; }
.msg, .dialog { font-family: cursive, sans-serif; }
@keyframes msg { from { transform: translate(-120%, 0); opacity: 0; } to { transform: none; opacity: 1; } }
.my-lil-gui-desc { font-size: 0.8em; opacity: 0.8; max-width: 100px; line-height: 1; white-space: normal !important; display: block; margin-top: 4px; }
</style>
<div class="dialog" style="display: none;">
<div class="close" onclick="this.parentNode.style.display='none';"></div>
<big>Voxiom.IO Aimbot, ESP & X-Ray (Ad Bypassed)</big>
<br>
<br>
Keys:
<br>
[V] Show/Hide Players<br>
[I] Show/Hide Items<br>
[N] Show/Hide Item Names<br>
[L] Show/Hide Blocks<br>
[B] Toggle Aimbot<br>
[T] Toggle Aimbot On RMB<br>
[K] Toggle Aimbot Auto Fire<br>
[Insert] Toggle Control Panel<br>
[;] Toggle World Wireframe<br>
[,] Show/Hide Ores<br>
<small>NOTE: If FPS is low, try enabling "Aim Behind Walls"</small>
<br>
<br>
Bypassed By: Kakoncheater
<br>
<br>
<div style="display: grid; grid-gap: 8px; grid-template-columns: 1fr 1fr;">
<div class="btn" onclick="window.open('https://discord.gg/K24Zxy88VM', '_blank')">Discord</div>
<div class="btn" onclick="window.open('https://www.instagram.com/zertalious/', '_blank')">Instagram</div>
<div class="btn" onclick="window.open('https://twitter.com/Zertalious', '_blank')">Twitter</div>
<div class="btn" onclick="window.open('https://greasyfork.org/en/users/662330-zertalious', '_blank')">More scripts</div>
</div>
</div>
<div class="msg" style="display: none;"></div>`;
function addElements() {
if (!shadow.querySelector('.dialog')) {
const tempContainer = document.createElement('div');
tempContainer.innerHTML = el.innerHTML;
while (tempContainer.firstChild) {
shadow.appendChild(tempContainer.firstChild);
}
}
if (!shadow.contains(renderer.domElement)) {
shadow.appendChild( renderer.domElement );
}
if (!gui) {
try {
initGui();
} catch (e) {
if (gui && gui.domElement && !shadow.contains(gui.domElement)) {
shadow.appendChild(gui.domElement);
}
}
}
}
function tryToAddElements() {
if ( document.body ) {
if (!document.body.contains(shadowHost)) {
document.body.appendChild( shadowHost );
}
addElements();
return;
}
setTimeout( tryToAddElements, 100 );
}
function toggleSetting( key ) {
if (settings.hasOwnProperty(key) && typeof settings[key] !== 'function' && key !== 'createdBy') {
settings[ key ] = ! settings[ key ];
showMsg( fromCamel( key ), settings[ key ] );
saveSettings();
}
}
window.addEventListener( 'keyup', function ( event ) {
if (event.target && (event.target.isContentEditable || event.target instanceof HTMLInputElement || event.target instanceof HTMLTextAreaElement)) {
return;
}
if ( keyToSetting[ event.code ] ) {
toggleSetting( keyToSetting[ event.code ] );
}
switch ( event.code ) {
case 'Insert':
if (gui) {
gui._hidden ? gui.show() : gui.hide();
}
break;
}
} );
function showMsg( name, bool ) {
const currentMsgEl = shadow.querySelector('.msg');
if (!currentMsgEl) return;
currentMsgEl.innerText = name + ': ' + ( bool ? 'ON' : 'OFF' );
currentMsgEl.style.display = 'none';
void currentMsgEl.offsetWidth;
currentMsgEl.style.display = '';
}