Noclip Client

Noclip Client is a dynamic cheat client for GoBattle.io. Join us! - https://discord.gg/yEweYTxFFD

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Noclip Client
// @namespace    http://tampermonkey.net/
// @version      2.0.13
// @description  Noclip Client is a dynamic cheat client for GoBattle.io. Join us! - https://discord.gg/yEweYTxFFD
// @author       Khanh vn
// @match        *://gobattle.io/*
// @match        *://alpha.gobattle.io/*
// @run-at       document-start
// @grant        none
// @license      All rights reserved. Do not reproduce without permission of the owners.
// @icon         
// ==/UserScript==

(function() {
    'use strict';

    // Tạo giao diện Menu
    const menuHTML = `
        <div id="gb-cheat-menu" style="position: fixed; top: 50px; left: 50px; width: 220px; background: rgba(0,0,0,0.8); color: white; padding: 10px; border-radius: 8px; z-index: 999999; font-family: monospace; font-size: 12px;">
            <div id="gb-menu-header" style="cursor: move; font-weight: bold; margin-bottom: 8px; border-bottom: 1px solid #555; padding-bottom: 4px;">GoBattle.io Menu</div>
            <button id="btn-noclip" style="width: 100%; margin-bottom: 5px; padding: 5px; background: #d9534f; border: none; color: white; cursor: pointer;">Noclip: OFF</button>
            <button id="btn-spawn-bot" style="width: 100%; padding: 5px; background: #0275d8; border: none; color: white; cursor: pointer;">Spawn Bot</button>
        </div>
    `;
    document.body.insertAdjacentHTML('beforeend', menuHTML);

    // Trạng thái tính năng
    let noclipState = false;

    // Xử lý sự kiện Noclip
    document.getElementById('btn-noclip').addEventListener('click', () => {
        noclipState = !noclipState;
        const btn = document.getElementById('btn-noclip');
        btn.innerText = `Noclip: ${noclipState ? 'ON' : 'OFF'}`;
        btn.style.background = noclipState ? '#5cb85c' : '#d9534f';
        
        // Chèn logic vô hiệu hóa va chạm của nhân vật tại đây
        // Ví dụ: nếu game dùng đối tượng player cục bộ, gán cờ bỏ qua va chạm
    });

    // Xử lý sự kiện Spawn Bot
    document.getElementById('btn-spawn-bot').addEventListener('click', () => {
        alert("Đang gửi lệnh tạo bot giả lập kết nối WebSocket...");
        // Chèn logic khởi tạo đối tượng WebSocket mới hoặc nhân bản gói tin gia nhập phòng tại đây
    });

    // Kéo thả menu đơn giản
    const menu = document.getElementById('gb-cheat-menu');
    let isDragging = false, offsetX, offsetY;
    menu.addEventListener('mousedown', (e) => {
        isDragging = true;
        offsetX = e.clientX - menu.offsetLeft;
        offsetY = e.clientY - menu.offsetTop;
    });
    document.addEventListener('mousemove', (e) => {
        if (isDragging) {
            menu.style.left = (e.clientX - offsetX) + 'px';
            menu.style.top = (e.clientY - offsetY) + 'px';
        }
    });
    document.addEventListener('mouseup', () => { isDragging = false; });
})();