NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Fly and SpeedHack Script // @namespace https://openuserjs.org/user/KeineAhnung4u // @version 1.0 // @description A script for flying and speed hacking in the game. // @author KeineAhnung4u // @match https://craftnite.io/* // @grant none // @license MIT // @copyright 2025, KeineAhnung4u (https://openuserjs.org/users/KeineAhnung4u) // ==/UserScript== (function() { 'use strict'; let isFlying = false; let flySpeed = 100; let flyInterval; function enableSpeedHack() { GAME.a865.player.vZ = 250; } function disableSpeedHack() { GAME.a865.player.vZ = 2.5; } document.addEventListener('keydown', (event) => { if (document.activeElement && document.activeElement.tagName !== 'INPUT' && event.key === ' ') { if (!isFlying) { isFlying = true; G.CONFIG.a143 = 100; flyInterval = setInterval(() => { let direction = new THREE.Vector3(); direction.setFromMatrixPosition(GAME.a865.player.camera.matrixWorld); direction.sub(GAME.a865.player.position).normalize().negate(); GAME.a865.player.position.addScaledVector(direction, flySpeed); }, 100); } enableSpeedHack(); } if (document.activeElement && document.activeElement.tagName !== 'INPUT' && event.key === 'Shift') { if (isFlying) { clearInterval(flyInterval); flyInterval = setInterval(() => { GAME.a865.player.position.y -= flySpeed; }, 100); } } }); document.addEventListener('keyup', (event) => { if (event.key === ' ' && isFlying) { clearInterval(flyInterval); isFlying = false; disableSpeedHack(); G.CONFIG.a143 = 0; } if (event.key === 'Shift' && isFlying) { clearInterval(flyInterval); G.CONFIG.a143 = 100; } }); })();