forked from ticzz/Aimware-v5-luas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAntiAim - Manual AA Legit in Ragebot.lua
72 lines (61 loc) · 2.63 KB
/
AntiAim - Manual AA Legit in Ragebot.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
local x, y = draw.GetScreenSize()
local aa_ref = gui.Reference("Ragebot", "Anti-Aim")
local gb = gui.Groupbox(aa_ref, "Legit Anti-Aim", 15, 720, 300, 400)
local nf_key = gui.Keybox(gb, "nkey", "Off Key", 0)
local left_key = gui.Keybox(gb, "leftkey", "Left Key", 0)
local right_key = gui.Keybox(gb, "rightkey", "Right Key", 0)
local lby_angle = gui.Slider(gb, "lbyangle", "LBY Offset", 58, 0, 180)
local xposition = gui.Slider(gb, "x", "X Position", x/2, 0, x)
local yposition = gui.Slider(gb, "y", "Y Position", y/2, 0, y)
nf_key:SetDescription("Removes Legit Desync")
left_key:SetDescription("Key used to set Fake to Left Side")
right_key:SetDescription("Key used to set Fake to Right Side")
lby_angle:SetDescription("Set LBY Flick angle")
xposition:SetDescription("Sets X Screenposition for the Indicator")
yposition:SetDescription("Sets Y Screenposition for the Indicator")
local left = true
local nofake = true
local textFont = draw.CreateFont('Tahoma', 25, 100)
callbacks.Register( "Draw", "Inverter", function()
draw.SetFont(textFont)
draw.Color(128,0,0,255)
if engine.GetServerIP() == nil then
return
end
if left_key:GetValue() ~= 0 then
if input.IsButtonPressed(left_key:GetValue()) then
left = true
nofake = false
end
end
if right_key:GetValue() ~= 0 then
if input.IsButtonPressed(right_key:GetValue()) then
left = false
nofake = false
end
end
if nf_key:GetValue() ~= 0 then
if input.IsButtonPressed(nf_key:GetValue()) then
nofake = true
gui.SetValue("rbot.antiaim.base", 0)
gui.SetValue("rbot.antiaim.base.rotation", 0)
gui.SetValue("rbot.antiaim.base.lby", 0)
gui.SetValue("rbot.antiaim.advanced.antialign", 0)
end
end
if left and not nofake then
gui.SetValue("rbot.antiaim.base.lby", lby_angle:GetValue() * -1)
gui.SetValue("rbot.antiaim.base.rotation", 58)
gui.SetValue("rbot.antiaim.base", 0)
gui.SetValue("rbot.antiaim.advanced.pitch", 0)
gui.SetValue("rbot.antiaim.advanced.antialign", 1)
draw.Text(xposition:GetValue(),yposition:GetValue(), "L <--")
elseif not left and not nofake then
gui.SetValue("rbot.antiaim.base.lby", lby_angle:GetValue())
gui.SetValue("rbot.antiaim.base.rotation", -58)
gui.SetValue("rbot.antiaim.base", 0)
gui.SetValue("rbot.antiaim.advanced.pitch", 0)
gui.SetValue("rbot.antiaim.advanced.antialign", 1)
draw.Text(xposition:GetValue(),yposition:GetValue(), "R -->")
end
end);