NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Everyone Kill // @namespace AutoTeleportAndShoot // @description Teleport and shoot to a selected player by name or everyone // @author KeineAhnung4u // @match https://craftnite.io/* // @run-at document-start // @license MIT // @version 1.0 // @grant GM_addStyle // @copyright 2025, KeineAhnung4u (https://openuserjs.org/users/KeineAhnung4u) // ==/UserScript== let randomTeleportEnabled = false; let randomTeleportInterval = null; let autoSelectEnabled = false; let autoSelectInterval = null; let selectedPlayerNames = []; function randomTeleport() { let me = GAME.a865.player; const maxDistance = 5000; const randomX = Math.random() * maxDistance * 2 - maxDistance; const randomZ = Math.random() * maxDistance * 2 - maxDistance; const randomY = Math.random() * -50000; const newPosition = new THREE.Vector3(me.position.x + randomX, randomY, me.position.z + randomZ); tp(newPosition, false); } function tp(pos, updateVisual = true) { let me = GAME.a865.player; var pkt = new a175(); pkt.time = parseFloat(("" + Date.now() / 1e3).slice(4)); pkt.x = pos.x; pkt.y = pos.y; pkt.z = pos.z; pkt.a751 = me.a751; if (updateVisual) { me.controls.moveCameraTo(pos); me.position.copy(pos); } if (me.camera != null) { me.camera.rotation.order = "YXZ"; pkt.a748 = me.camera.rotation.y; pkt.a749 = me.camera.rotation.x; } G.socket.send(pkt.a614()); } function shootAtPosition(position) { let me = GAME.a865.player; let direction = new THREE.Vector3(); direction.set(0, -1, 0).normalize(); direction.multiplyScalar(999999999); const a = 8; const b = 9; try { for (let i = 0; i < 30; i++) { GAME.a865.player.a609(a, b, { headshotMsg: ["boom ", "headshot"], headshotColor: ["rgba(255,0,0,{opacity})", "rgba(255,255,255,{opacity})"] }, false, false, direction); } console.log(`Shot at position: ${position.x}, ${position.y}, ${position.z}`); } catch (error) { console.log(`Failed to shoot at position: ${position.x}, ${position.y}, ${position.z}: ${error.message}`); } } function getOtherPlayers() { return G.othera822ers.filter(player => player && player.a240); } function temporarilyMoveAndShoot() { let me = GAME.a865.player; const originalPosition = me.position.clone(); const players = getOtherPlayers().filter(player => selectedPlayerNames.includes(player.name)); if (players.length === 0) { console.log("No selected players found."); return; } players.forEach(player => { try { me.position.copy(player.position); shootAtPosition(player.position); } catch (error) { console.log(`Failed to shoot at ${player.name}: ${error.message}`); } }); me.position.copy(originalPosition); } document.addEventListener('keydown', function(event) { if (event.key === '*') { randomTeleportEnabled = !randomTeleportEnabled; console.log("ServerCrashing " + (randomTeleportEnabled ? "Active" : "Passive")); let randomTeleportStatusSpan = document.getElementById('randomTeleportStatus'); randomTeleportStatusSpan.innerText = randomTeleportEnabled ? 'Active' : 'Passive'; randomTeleportStatusSpan.className = randomTeleportEnabled ? 'status-active' : 'status-passive-red'; if (randomTeleportEnabled) { randomTeleportInterval = setInterval(randomTeleport, 0.00001); } else { clearInterval(randomTeleportInterval); randomTeleportInterval = null; } } else if (event.key === '"') { autoSelectEnabled = !autoSelectEnabled; console.log("AutoKill" + (autoSelectEnabled ? "Active" : "Passive")); let autoSelectStatusSpan = document.getElementById('autoSelectStatus'); autoSelectStatusSpan.innerText = autoSelectEnabled ? 'Active' : 'Passive'; autoSelectStatusSpan.className = autoSelectEnabled ? 'status-active' : 'status-passive-red'; if (autoSelectEnabled) { autoSelectInterval = setInterval(() => { selectedPlayerNames = getOtherPlayers().map(player => player.name); console.log(`Otomatik seçilen oyuncular: ${selectedPlayerNames.join(', ')}`); temporarilyMoveAndShoot(); }, 900); } else { clearInterval(autoSelectInterval); autoSelectInterval = null; } } }); (function() { 'use strict'; GM_addStyle(` @keyframes colorChange { 0% { color: red; } 25% { color: orange; } 50% { color: yellow; } 75% { color: green; } 100% { color: blue; } } #showButton:hover { opacity: 1 !important; } .status-active { color: green !important; } .status-passive-red { color: red !important; } `); function createStatusContainer() { const statusContainer = document.createElement('div'); statusContainer.id = 'statusContainer'; statusContainer.style.position = 'fixed'; statusContainer.style.bottom = '10%'; statusContainer.style.right = '10px'; statusContainer.style.backgroundColor = 'rgba(0, 0, 0, 0.8)'; statusContainer.style.padding = '5px'; statusContainer.style.borderRadius = '5px'; statusContainer.style.zIndex = '1000'; statusContainer.style.color = 'white'; statusContainer.style.opacity = '0.8'; statusContainer.style.fontSize = '0.7em'; statusContainer.innerHTML = ` <div>ServerCrashing: <span id="randomTeleportStatus" class="status-passive-red">Passive</span></div> <div>AutoKill: <span id="autoSelectStatus" class="status-passive-red">Passive</span></div> `; document.body.appendChild(statusContainer); } window.addEventListener('load', createStatusContainer); })();