// ==User Script==
// @name [Link] Client
// @version 1.8
// @description A client made by Disease for people to cheat on a web game LMFAO
// @author Disease (CPScript)
// @match [Link]
// @grant none
// @run-at document-start
// ==/User Script==
class Hack {
constructor() {
[Link] = {
infAmmo: true,
infJump: true,
autoKill: true,
speedMlt: 0,
esp: true,
aimbot: true,
timeScale: 0
};
[Link] = {
network: null,
movement: null,
anticheat: true,
};
[Link]();
[Link]();
[Link]();
}
createUI() {
const uiContainer = [Link]('div');
[Link] = 'fixed';
[Link] = '10px';
[Link] = '10px';
[Link] = 'rgba(0, 0, 0, 0.7)';
[Link] = 'white';
[Link] = '10px';
[Link] = '5px';
[Link] = '9999';
[Link] = 'Arial, sans-serif';
[Link] = '14px';
[Link] = '0 0 10px rgba(0, 0, 0, 0.5)';
const title = [Link]('h3');
[Link] = 'Hack Controls';
[Link] = '0 0 10px 0';
[Link](title);
const settings = [
{ name: 'Infinite Ammo', key: 'infAmmo' },
{ name: 'Infinite Jump', key: 'infJump' },
{ name: 'Auto Kill', key: 'autoKill' },
{ name: 'ESP', key: 'esp' },
{ name: 'Aimbot', key: 'aimbot' },
{ name: 'Speed Multiplier', key: 'speedMlt' },
{ name: 'Time Scale', key: 'timeScale' }
];
[Link](setting => {
const label = [Link]('label');
[Link] = 'block';
[Link] = '5px';
const checkbox = [Link]('input');
[Link] = 'checkbox';
[Link] = [Link][[Link]];
[Link] = '5px';
[Link]('change', () => {
[Link][[Link]] = [Link];
[Link]();
});
[Link](checkbox);
[Link]([Link]([Link]));
[Link](label);
});
// Developer label
const developerLabel = [Link]('div');
[Link] = 'Developed by Disease';
[Link] = 'absolute';
[Link] = '10px';
[Link] = '10px';
[Link] = 'lightgray';
[Link] = '12px';
[Link] = '0.8';
[Link](developerLabel);
[Link](uiContainer);
[Link] = uiContainer;
}
updateUI() {
const settings = [
{ key: 'infAmmo', name: 'Infinite Ammo' },
{ key: 'infJump', name: 'Infinite Jump' },
{ key: 'autoKill', name: 'Auto Kill' },
{ key: 'esp', name: 'ESP' },
{ key: 'aimbot', name: 'Aimbot' },
{ key: 'speedMlt', name: 'Speed Multiplier' },
{ key: 'timeScale', name: 'Time Scale' }
];
[Link](setting => {
const checkbox = [Link](`input[type="checkbox"]
[name="${[Link]}"]`);
if (checkbox) {
[Link] = [Link][[Link]];
}
});
}
async waitForProp(prop) {
while () {
await new Promise(resolve => setTimeout(resolve, 1000));
}
}
setupHooks() {
const hooks = ['Movement', 'NetworkManager', ' VengeGuard', 'Label'];
[Link](hook => {
[Link](hook).then(this[`hook${hook}`]).catch([Link]);
});
}
setupBinds() {
[Link]("keydown", (e) => [Link](e));
}
handleKeyPress(e) {
const keyActions = {
190: () => [Link]('autoKill', "Kill on Respawn"),
188: () => [Link]('infAmmo', "Infinite Ammo"),
186: () => [Link]('aimbot', "Aimbot"),
222: () => [Link]('infJump', "Infinite Jump"),
191: () => [Link](),
219: () => [Link](),
221: () => [Link]('esp', "ESP"),
220: () => [Link]()
};
if (keyActions[[Link]]) {
keyActions[[Link]]();
}
}
toggleSetting(setting, message) {
[Link][setting] = ![Link][setting];
[Link]();
[Link]("Chat:Message", "Hacks", `${message} - $
{[Link][setting] ? "Enabled" : "Disabled"}`, true);
}
changeSpeedMultiplier() {
[Link] = ([Link] + 1) % 5;
[Link]("Chat:Message", "Hacks", `Speed Multiplier - $
{[Link] + 1}x`, true);
}
teleportToSafety() {
[Link]("Chat:Message", "Hacks", "Teleporting you to
Safety", true);
[Link]("Player:Respawn", true);
}
changeTimeScale() {
[Link] = ([Link] + 1) % 5;
[Link] = [Link] + 1;
[Link]("Chat:Message", "Hacks", `Timescale - $
{[Link] + 1}x`, true);
}
hookMovement() {
const originalUpdate = [Link];
let defaultSpeeds = [];
[Link] = (t) => {
if (![Link]) {
[Link] = this;
defaultSpeeds = [[Link], [Link]];
}
[Link]();
[Link](this, t);
[Link](defaultSpeeds);
};
[Link]("Movement Hooked");
}
applyMovementSettings(defaultSpeeds) {
if ([Link]) {
[Link]();
[Link] = false;
}
if ([Link]) {
[Link] = true;
[Link] = 0;
[Link] = false;
}
[Link] = defaultSpeeds[0] * ([Link] + 1);
[Link] = defaultSpeeds[1] * ([Link] + 1);
}
hookNetwork() {
const originalInitialize = [Link];
[Link] = () => {
if (![Link]) {
[Link] = this;
}
[Link](this);
};
const originalRespawn = [Link];
[Link] = (e) => {
[Link](this, e);
if (e && [Link] > 0 && [Link]) {
const targetId = e[0];
const targetPlayer = [Link](targetId);
if (targetPlayer && targetId !== [Link]) {
setTimeout(() => {
[Link](["da", targetId, 100, 1, [Link].x,
[Link].y, [Link].z]);
}, 3500);
}
}
};
[Link]("Network Hooked");
}
hookAnticheat() {
[Link] = () => {
[Link]("Network:Guard", 1);
};
[Link]("Anticheat Hooked");
}
hookLabel() {
[Link] = (t) => {
if (![Link]) {
if ([Link]) {
[Link] = false;
return false;
}
if ([Link]() - [Link] > 1800 && !
[Link] .esp) {
[Link] = false;
return false;
}
}
[Link]();
};
[Link]("Label Hooked");
}
updateLabelPosition() {
const position = new pc.Vec3();
const camera = [Link];
const pixelRatio = [Link];
const scale = [Link];
[Link]([Link](), position);
position.x *= pixelRatio;
position.y *= pixelRatio;
if (position.x > 0 && position.x < [Link] &&
position.y > 0 && position.y < [Link] && position.z > 0) {
[Link](position.x / scale,
([Link] - position.y) / scale, 0);
[Link] = true;
} else {
[Link] = false;
}
}
onTick() {
if ([Link]) {
[Link]();
}
}
aimAtClosestPlayer() {
let closest = null;
let closestDistance = null;
const players = [Link];
const currentPosition = [Link]();
[Link](target => {
const distance = [Link]([Link],
currentPosition);
if (distance < closestDistance || closestDistance === null) {
closest = target;
closestDistance = distance;
}
});
[Link](closest, currentPosition);
}
calculateDistance(targetPosition, currentPosition) {
return [Link](
[Link](targetPosition.y - currentPosition.y, 2) +
[Link](targetPosition.x - currentPosition.x, 2) +
[Link](targetPosition.z - currentPosition.z, 2)
);
}
adjustAim(closest, currentPosition) {
if (closest) {
const rayCastList =
[Link](currentPosition, [Link]()).map(x
=> [Link]._list.toString());
const rayCastCheck = [Link] === 1 && rayCastList[0] ===
"Player";
if (rayCastCheck) {
const aimDirection = [Link]([Link].x,
[Link].z, currentPosition.x, currentPosition.z);
[Link] = aimDirection * 57.29577951308232 +
([Link]() / 10 - [Link]() / 10);
[Link] = -1 *
[Link]([Link], currentPosition) * 57.29577951308232;
[Link] = true;
[Link]([Link]);
} else {
[Link] = false;
}
}
}
getXDirection(targetPosition, currentPosition) {
const deltaY = [Link](targetPosition.y - currentPosition.y);
const distance = [Link](targetPosition, currentPosition);
return [Link](deltaY / distance) * (targetPosition.y > currentPosition.y
? -1 : 1);
}
}
const FakeGuard = new Hack();