LUA скрипт Chimera {defensive replica by me} [NL]

Начинающий
Статус
Оффлайн
Регистрация
7 Май 2021
Сообщения
77
Реакции[?]
3
Поинты[?]
3K
наделал много ошибок вот фикс

Код:
local pui = require("neverlose/pui")

local top = pui.create("table")

local defensive = top:switch("Defensive Anti-Aim", false, function(settings)
    return {
        pitch = settings:combo("Pitch", {"None", "Down", "Up", "Random", "PAKETA", "Semi-Up", "Semi-Down"}),
        yaw = settings:combo("Yaw", {"None", "Spinbot", "Opposite", "SideWays", "Random", "3-way", "5-way"}),
        disablers = settings:selectable("Disablers", {"Freestanding", "Manual Yaw Base"}),
    }
end)

local values = {
    pitch_value = 0,
    yaw_value = 0,
    PAKETA = 0,
    spin = 0,
    opposite = 0,
    sideways = 0,
    way5 = {-1,0.5,0,0.5,1},
    way3 = {-1,0,1},
}

local ref = {
    hidden = ui.find("Aimbot", "Anti Aim", "Angles", "Yaw", "Hidden"),
}

events.createmove:set(function(cmd)
    local way5_value = 180 * values.way5[globals.tickcount % 5 + 1]
    local way3_value = 180 * values.way3[globals.tickcount % 3 + 1]
    if values.PAKETA >= 89 then
        values.PAKETA = -89
    else
        values.PAKETA = values.PAKETA + 1
    end

    if values.spin >= 180 then
        values.spin = -180
    else
        values.spin = values.spin + 20
    end

    if values.opposite >= 180 then
        values.opposite = -180
    else
        values.opposite = values.opposite + 180
    end

    if values.sideways >= 180 then
        values.sideways = -180
    else
        values.sideways = values.sideways + 90
    end

    if defensive.pitch:get() == "Down" then pitch_value = 89 elseif defensive.pitch:get() == "Up" then pitch_value = -89 elseif defensive.pitch:get() == "Random" then pitch_value = utils.random_int(-89,89) elseif defensive.pitch:get() == "PAKETA" then pitch_value = values.PAKETA elseif defensive.pitch:get() == "Semi-Up" then pitch_value = -44 elseif defensive.pitch:get() == "Semi-Down" then pitch_value = 44 end

    if defensive.yaw:get() == "Spinbot" then yaw_value = values.spin elseif defensive.yaw:get() == "Opposite" then yaw_value = values.opposite elseif defensive.yaw:get() == "SideWays" then yaw_value = values.sideways elseif defensive.yaw:get() == "Random" then yaw_value = utils.random_int(-180,180) elseif defensive.yaw:get() == "3-way" then yaw_value = way3_value elseif defensive.yaw:get() == "5-way" then yaw_value = way5_value end

    if defensive:get() then
        ref.hidden:set(true)
        rage.antiaim:override_hidden_pitch(pitch_value)
        rage.antiaim:override_hidden_yaw_offset(yaw_value)
        else
        ref.hidden:set(false)
    end
end)
Бля чел пофикси их что бы они работали а то луа лоудится а функции не работают
 
Juicy
Участник
Статус
Оффлайн
Регистрация
5 Май 2021
Сообщения
655
Реакции[?]
151
Поинты[?]
8K
Бля чел пофикси их что бы они работали а то луа лоудится а функции не работают
fixed replica:
local pui = require("neverlose/pui")

local group = pui.create("replica")

local defensive = group:switch("Defensive Anti-Aim", false, function(gear)
    return {
        pitch = gear:combo("Pitch", {"None", "Down", "Up", "Random", "PAKETA", "Semi-Up", "Semi-Down"});
        yaw = gear:combo("Yaw", {"None", "Spinbot", "Opposite", "SideWays", "Random", "3-way", "5-way"})
    }
end, "In order to use them\nturn Defensive always on\nRagebot > Main > Double tap > Lag options")

defensive.pitch:depend(defensive)
defensive.yaw:depend(defensive)

local values = {
    pitch_value = 0;
    yaw_value = 0;
    PAKETA = 0;
    spin = 0;
    opposite = 0;
    sideways = 0;
    way5 = {-1, 0.5, 0, 0.5, 1};
    way3 = {-1, 0, 1}
}

local references = {
    hidden = ui.find("Aimbot", "Anti Aim", "Angles", "Yaw", "Hidden")
}

local pitch_values = {
    Down = 89;
    Up = -89;
    Random = function() return utils.random_int(-89, 89) end;
    PAKETA = function() return values.PAKETA end;
    ["Semi-Up"] = -45;
    ["Semi-Down"] = 45
}

local yaw_values = {
    Spinbot = function() return values.spin end;
    Opposite = function() return values.opposite end;
    SideWays = function() return values.sideways end;
    Random = function() return utils.random_int(-180, 180) end;
    ["3-way"] = function() return 180 * values.way3[globals.tickcount % 3 + 1] end;
    ["5-way"] = function() return 180 * values.way5[globals.tickcount % 5 + 1] end
}

events.createmove:set(function(cmd)
    values.PAKETA = (values.PAKETA >= 89) and -89 or values.PAKETA + 1
    values.spin = (values.spin >= 180) and -180 or values.spin + 20
    values.opposite = (values.opposite >= 180) and -180 or values.opposite + 180
    values.sideways = (values.sideways >= 180) and -180 or values.sideways + 90

    local pitch_mode = defensive.pitch:get()
    values.pitch_value = pitch_values[pitch_mode] and (type(pitch_values[pitch_mode]) == "function" and pitch_values[pitch_mode]() or pitch_values[pitch_mode]) or 0

    local yaw_mode = defensive.yaw:get()
    values.yaw_value = yaw_values[yaw_mode] and yaw_values[yaw_mode]() or 0

    if defensive:get() then
        references.hidden:set(true)
        rage.antiaim:override_hidden_pitch(values.pitch_value)
        rage.antiaim:override_hidden_yaw_offset(values.yaw_value)
    else
        references.hidden:set(false)
    end
end)
 
Сверху Снизу