Batata
Newcomer
- Joined
- Jun 10, 2021
- Messages
- 1
- Reaction score
- 0
I'm trying to make a command with the mouse but it's giving this error could someone help me??


Lua:
EnablePrimaryMouseButtonEvents(true);
local Autotag = 1
function Autotag(PressMouseButton)
if (x=="no") then
if (seconds1<seconds2) then
Sleep(1)
else
PressKey(Autotagmfer)
Sleep(math.random(AltPressSpeedMin,AltPressSpeedMax))
ReleaseKey(Autotagmfer)
Sleep(math.random(InBetweenSpeedMin,InBetweenSpeedMax))
PressKey(Autotagmfer)
Sleep(math.random(AltPressSpeedMin,AltPressSpeedMax))
ReleaseKey(Autotagmfer)
Sleep(2)
seconds2 = seconds1 + AUTOTAGONLY
end
else
PressKey(Autotagmfer)
Sleep(math.random(AltPressSpeedMin,AltPressSpeedMax))
ReleaseKey(Autotagmfer)
Sleep(math.random(InBetweenSpeedMin,InBetweenSpeedMax))
PressKey(Autotagmfer)
Sleep(math.random(AltPressSpeedMin,AltPressSpeedMax))
ReleaseKey(Autotagmfer)
Sleep(2)
seconds2 = seconds1 + AUTOTAGONLY
end
function OnEvent(event, arg)
--HIGHRecoiltoggle on/off
if IsKeyLockOn(REcoilHIGHTogggle) then
HIGH_Recoil=true
else
HIGH_Recoil=false
end
if IsKeyLockOn(LockKey) then --This toggles Recoil on/off
if IsMouseButtonPressed(RC) then --Loop for ADS. Primes Norecoil, Autotag and rapidfire
repeat
if IsMouseButtonPressed(LC) then --Norecoil
seconds=GetRunningTime()
seconds1= seconds/1000
Autotag()
NoRecoil()
elseif IsMouseButtonPressed(Rapidfirebutton) then --Rapidfire
seconds=GetRunningTime()
seconds1= seconds/1000
Autotag()
RapidFire()
end
until not IsMouseButtonPressed(RC) --end of Priming loop
end
end
end
end