Tutorial | Logitech | Make your own Lua No-Recoil | Part #1

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 125

  • @kriptaep212
    @kriptaep212  3 роки тому +8

    Hello guys, I will begin uploading videos again.
    Got another warning from freaking PUBG corp.
    Anyway.. new discord link: discord.gg/KWMGgPr

    • @dema669
      @dema669 3 роки тому

      Hi, I want to make a script to move the mouse down clicks and then moves to the right and click again when I click the G-shift do you think you can help me?

    • @alam300
      @alam300 2 роки тому

      how can i do the same thing but making recoil work only when click left click without right click ?

    • @alam300
      @alam300 2 роки тому

      and if i want to to move to the left for 2 sec then go to right after 2 sec would it be possible ?

  • @_gino
    @_gino 3 роки тому

    Thanks for the tutorial, you help me a lot to start to know about that. i will wacht the next two tutorial! 👍

  • @despradothegho
    @despradothegho 3 роки тому +2

    thx bro, I hope u contiue in lua and give us more advanced tutorials
    first comment first like

  • @roflbofl
    @roflbofl Рік тому +1

    thank you, you're a good teacher :)

  • @RO-BO
    @RO-BO Рік тому

    Thanks Mate 🙌

  • @keNNyEM
    @keNNyEM 2 роки тому +3

    For people who have a problem like this "attempt to call a nil value (global 'IsMousebuttonPressed') Line Number:1" The simple solution is to change your Logitech G Hub language settings to english.

    • @_shawn_insan3468
      @_shawn_insan3468 Рік тому

      Mines is set to English and still having that problem

  • @authgarauthgar1501
    @authgarauthgar1501 Рік тому

    i appreciate you bud

  • @wikindog
    @wikindog 2 роки тому +3

    Thanks for the tutorial. I have a G512 carbon keyboard and I want program to change colour while the Caps-Lock button is on. Do you have ideas or suggestions I could try? Thank you.

    • @zjaranyjoe7456
      @zjaranyjoe7456 Рік тому

      You can use the love.graphics.setColor function to change the color in Lua. To do this, simply call the function with four arguments which are the RGB values:
      love.graphics.setColor(r, g, b, a)
      where r, g, b and a are the red, green, blue and alpha components respectively. Each of these arguments can have a value from 0.0 to 1.0. For example, to set the color to white you can use the following code:
      love.graphics.setColor(1.0, 1.0, 1.0, 1.0)

  • @ionutmarian5044
    @ionutmarian5044 27 днів тому

    what i not understand how to assign the button for ON/OFF the script...can explain pls?

  • @pablozambrano7716
    @pablozambrano7716 Рік тому

    I have a question, is posible to use insted MoveMouseRelative(0, 5) use MoveMouseRelative(0, 5.5745) is posble to use decimals?

  • @muhamedomerovic6667
    @muhamedomerovic6667 2 роки тому +2

    [string "LuaVM"]:246: attempt to call a nil value (field 'pow') Line Number:1
    Can you help me fix it?

  • @helloworld_23102
    @helloworld_23102 2 роки тому +4

    Hi Krip, the script seems is not working on latest G hub software. It seems can't detect the IsMouseButtonPresses(1) the left click of the mouse.

    • @triplettjon
      @triplettjon 2 роки тому +1

      EnablePrimaryMouseButtonEvents(true)
      add this to the top of the script

    • @ddw1518
      @ddw1518 Рік тому +1

      @@triplettjon Thanks the snipet code is work. but in the lastest G hub software, the middle mouse button is 3, right mouse button is 2, and there is the new 6 for the middle-bottom mouse.
      And, my mouse dones't work for the code in this video:
      EnablePrimaryMouseButtonEvents(true)
      function OnEvent(event, arg)
      OutputLogMessage("Event: "..event.." Arg: "..arg.."
      ")
      if IsMouseButtonPressed(3) then
      repeat
      if IsMouseButtonPressed(1) then
      repeat
      Sleep(10)
      MoveMouseto(150,150)
      until not IsMouseButtonPressed(1)
      end

      until not IsMouseButtonPressed(3)
      end
      end

    • @triplettjon
      @triplettjon Рік тому

      @@ddw1518 thanks for the update 😉

    • @ddw1518
      @ddw1518 Рік тому

      @@triplettjon u r welcome, I appreciate ur information too. But the snippet code in this video is still work at nowaday G-hut software version? As I tried this code yesterday but it don't work for me.😣

  • @Th3SecretLady
    @Th3SecretLady 6 місяців тому +1

    How i make a general script like 1 button for increase and 1 button for decrease recoil....10 20,30% per click higher or lower...

  • @soccerjonesy
    @soccerjonesy 3 роки тому +2

    So I'm trying to set up a script to introduce a random delay between clicks on my keyboard, rather than a list of attempted random inputs on cycle I currently have for a macro. Right now, I have Press A (~100ms) Release A (~1200ms) Press Spacebar (~100ms) Release Spacebar (~12500 ms), and then repeat that cycle. Any idea how to set that up as a script so that the times, especially after Release A and Release Spacebar, becomes random times between 1150-1300 ms and 12000-14000 ms? So far, I have...
    PressKey("a")
    Sleep(math.random(70, 120))
    ReleaseKey("a")
    Sleep(math.random(1150, 1300))
    PressKey("spacebar")
    Sleep(math.random(70, 120))
    ReleaseKey("spacebar")
    Sleep(math.random(12000, 14000))
    Thoughts?

  • @blogJM
    @blogJM 2 роки тому +1

    Is there a function in LUA to detect whether the cursor/mouse is shown on screen?

  • @jacksparrow9744
    @jacksparrow9744 2 роки тому +1

    How can I speed up my mouse on the horizontal axis?

  • @rodrigaumm
    @rodrigaumm 3 роки тому +3

    Are you from Brazil?

    • @TheWantedUnknown
      @TheWantedUnknown 3 роки тому +2

      incrivel como um brasileiro sabe detectar outro brasileiro falando em ingles UEHUEAHAUEHEAUH

    • @rodrigaumm
      @rodrigaumm 3 роки тому +1

      @@TheWantedUnknown ahsuhwskkwd tem um sotaque de leve

  • @lajm_183
    @lajm_183 2 роки тому

    Hey, I have a question, can I detect if the scroll wheel is being used? I wanted the script to press "LMB (left mouse button)" whenever I scroll with my scroll wheel.

  • @IgorBasilius
    @IgorBasilius 3 роки тому +1

    Other mice * (Razer, Redragon, Hyper-x ...) * can also be programmable with this type of script? If not with .lua, at least with another language?

    • @ImsoloTURK
      @ImsoloTURK 8 місяців тому

      any thoughts on this?

  • @Prxstige11
    @Prxstige11 7 місяців тому

    Ok cool!

  • @Schniebel89
    @Schniebel89 Рік тому

    Cool 😎

  • @kriptaep212
    @kriptaep212  3 роки тому +3

    Hello,
    This is a pretty long tutorial but with the knowledge in this video you should be able to make your own simple script.
    If you just wish to download the code: www.kriptaep.com/member -> Click on "Download" for Simple Recoil

    • @skim0o88
      @skim0o88 3 роки тому

      some of the scripts arent working, like endfunction, event and arg

    • @skim0o88
      @skim0o88 3 роки тому

      and there's also an error on line 2

  • @SLID3R040
    @SLID3R040 2 роки тому +2

    [string "LuaVM"]:3: attempt to call a nil value (global 'IsMousebuttonPressed') Line Number:1

    • @jjs.b4322
      @jjs.b4322 2 роки тому

      i have the same problem

  • @Rayan---il5pf
    @Rayan---il5pf 6 місяців тому

    If a lua script is made for logitech mouse, is there any way to run that lua script without logitech mouse?

  • @KirbyGriffin98
    @KirbyGriffin98 Рік тому

    I copied this exactly and it does nothing at all even though there are no syntax errors did i do something wrong?

  • @kaantek499
    @kaantek499 2 роки тому

    hello,
    something wrong I put save when I finish when i"m on the game first shoot work but when i change weapons not working... why its going off ?

  • @deadmta5433
    @deadmta5433 5 місяців тому

    Could you help me need to make a macro that quickly presses the "wheel up" key in a loop logitech

  • @bipbopking1101
    @bipbopking1101 3 роки тому +2

    The script pasting/writing window doesnt open for some reason and it says to close it to save script even though it doesnt even open, please help

  • @ReckqWow
    @ReckqWow 2 роки тому +1

    is this recoil too harsh for CoD Vanguard guns or would this work?

  • @sahinalyami
    @sahinalyami Рік тому

    I have a script that used to work then I deleted it but I try to use it again it says that [string "LuaVM"]:256: attempt to call a nil value (field 'pow') Line Number:1

  • @WoysfuL
    @WoysfuL Рік тому +1

    Thank you very much! It's really sad that Logitech didn't bother to add cursor movement to the UI, so we have to learn lua

  • @mikelowry2254
    @mikelowry2254 2 роки тому

    Hi, I’m getting an error at 18mins in telling me profile activated arg:0 line 1/ any help?

  • @MrChiamera
    @MrChiamera 3 роки тому

    Sometimes i have it on but sometimes its off,than its on again.. i past the same thing as u have.. any button im pressing that is turning off?

  • @fabiansaavedra1008
    @fabiansaavedra1008 2 роки тому

    friend when I create the script and save it, the difference is not felt in the game and the lua comes out dark in color

  • @K1nd0mRush
    @K1nd0mRush 11 місяців тому

    Why sleep disable all function for all time?

  • @IANC4EVER
    @IANC4EVER 3 роки тому +2

    Really interesting tutorial, thank you!
    however, why doenst assigning to bottom 1 work?? Is this not allowed?
    if IsMouseButtonPressed(1) then
    repeat

    MoveMouseRelative(0, 2)
    Sleep(8)


    until not IsMouseButtonPressed(1)
    end

    • @dragondavide1914
      @dragondavide1914 3 роки тому

      yeah would be easier, right?

    • @dragondavide1914
      @dragondavide1914 3 роки тому

      actually i tried and i still have to press the button 3 to start it, i don't understand how to use it just with the button 1 and activate it with the numlock key

  • @liam8715
    @liam8715 2 роки тому +1

    How to do it without logitech mouse?

  • @Mike-ij5vf
    @Mike-ij5vf 3 роки тому

    ty

  • @jackijackdarth1938
    @jackijackdarth1938 9 місяців тому

    i only see when my mouse is pressed... why dont i see when my logitech g920 is pressed?

  • @mohammadhack997
    @mohammadhack997 3 роки тому

    I make macro like you but but not working. What is problem?

  • @_bools
    @_bools 2 роки тому

    I wrote a script for instalocking in valorant I have no interest in no recoil, it was working perfectly and I was able to instantly select my character but the next day it stopped working I think valorant has blocked Lua scripts from working is there any way to bypass this? its strange bc it was just working last night.

  • @gonzalonahuelgomezarrua6035
    @gonzalonahuelgomezarrua6035 3 роки тому +1

    The script will work in PS4 with a Logitech G PRO HERO or It is impossible?

  • @fathaan-hikanu
    @fathaan-hikanu 2 роки тому +2

    new Ghub version can not save the script

  • @paulsonhanel6369
    @paulsonhanel6369 3 роки тому

    right at 7:20 I am having a problem. When I click control S, which I assume is the equivilant to save and run (have also tried) it tells me loaded then event provile_deativated args 0 and it doesnt' update when I click or anything. Seems like it is just done there. Any shuggestions?

    • @LittleJT123
      @LittleJT123 2 роки тому +1

      newer versions of HUB are Bugged, try downloading an older version like ( version: 2021.3.5264 )

    • @paulsonhanel6369
      @paulsonhanel6369 2 роки тому

      @@LittleJT123 thanks

  • @Dat09real
    @Dat09real 3 роки тому

    wow you back i thought your channel was reported

  • @dababbs3381
    @dababbs3381 2 роки тому

    okay so i did everything you did and now i cant even play battlefeild.....my guy is just staring at the ground and cant get him to look up or down...tried deleting the script, uninstalling battlefield ands logitech g hub and nothing is working....PLEASE HELP ME

    • @rvgGhost
      @rvgGhost 2 роки тому

      If this is on Battlfield 2042, and you cant look up or down while staring at the ground. Its either a controller is plugged in which is a known issue, or you have to blow away your battlefield 2042 folder in your documents folder and redo all your in game settings. Unfortunately these are the only fixes for this glitch

  • @alessior.3943
    @alessior.3943 2 роки тому

    is it possible to create a script for PUBG?
    or is this compatible?

    • @kriptaep212
      @kriptaep212  2 роки тому

      You can create a script for any game.

  • @Tee-mf8ug
    @Tee-mf8ug 2 роки тому

    when i press edit script dosent openingthe second tab what can i do

  • @jonathanhilliard971
    @jonathanhilliard971 2 роки тому

    This is not working...I have it copied EXACTLY, but i keep getting [string "LuaVM"]:9: attempt to call a nil value (global 'IsMousebuttonPressed') Line Number:1

    • @kriptaep212
      @kriptaep212  2 роки тому +1

      IsMouseButtonPressed , the "b" needs to be capital

  • @Alcamps
    @Alcamps 2 роки тому

    have a script in xml is possible convert in lua?

  • @Demona3330
    @Demona3330 Рік тому

    Hello i hope someone can help me with this lua script. I got a logictech g600 and i want a script that makes "press G12" "press G12" again but the second click is left mouse button to fire in a game. Hope you understand me and are willing to help me.

  • @mikelowry2254
    @mikelowry2254 2 роки тому

    Scrap my last comment managed to get it working but it doesn’t work every time. Every suggestions ?

  • @shark1988shark
    @shark1988shark 2 роки тому

    hi, i tried to install the script, in the logitech screen it works, the ursor moves down, but in the game not, why?

    • @kriptaep212
      @kriptaep212  2 роки тому +1

      Run Logitech Gaming Hub as Administrator =)

    • @shark1988shark
      @shark1988shark 2 роки тому

      @@kriptaep212 but is there a way to trigger this query?

    • @shark1988shark
      @shark1988shark 2 роки тому

      @@kriptaep212 perfect

    • @shark1988shark
      @shark1988shark 2 роки тому

      @@kriptaep212 hello sorry, could the ping have risen during games for entering the query?

  • @roguehorizon6607
    @roguehorizon6607 5 місяців тому

    what is the chance i get bannned

  • @dragondavide1914
    @dragondavide1914 3 роки тому

    doen anyone know how to always have the recoil scrypt with the button 1 ? without have to press button 3? thanks

    • @getmeoutofsanfrancisco9917
      @getmeoutofsanfrancisco9917 3 роки тому

      Change the 3 to something else, or just get rid of that initial function altogether and just keep the second one.

  • @dabom-g2c
    @dabom-g2c 6 місяців тому

    make one for rust

  • @matiastorti8357
    @matiastorti8357 Рік тому

    Hello! I have a problem. I have the g502 lightspeed mouse which has 11 buttons. I want the if condition to be pressing button 6 (sniper button) but it gives me an error. Excuse me if it is badly written but my native language is not English.

  • @simkim608
    @simkim608 Рік тому

    Is this applicable to deathadder essential

    • @Kourzz
      @Kourzz 7 днів тому

      You can use a XML

    • @Kourzz
      @Kourzz 7 днів тому

      On razers software

  • @nikolazupa6216
    @nikolazupa6216 Рік тому

    i have a g903 and dont work

  • @ZeroCool22
    @ZeroCool22 3 роки тому

    Hi, i'm trying to make this macro:
    In WarZone when you AIM with a sniper weapon you also need to hold another key to stabilize de AIM, i want to do this macro:
    Just pressing the *Right Click* Mouse it "AIM + Stabilize", in other words Right Click do 2 actions simultaneously: AIM + STABILIZE AIM.
    Can you teach how do this?
    Thx.

    • @ankit3375
      @ankit3375 3 роки тому +2

      Add keystrokes on macros section on same profile or record macro

    • @skengmoosa8906
      @skengmoosa8906 3 роки тому

      @@ankit3375 whats ur discord maybe i can add u and u can show me how its done coz im after the same thing thanks

  • @markwolf9408
    @markwolf9408 2 роки тому

    hello brother, thank you very much for your videos, it's what I was looking for, could you show us some autoclick code to add to the script..

  • @jannenKoodivideot
    @jannenKoodivideot 3 роки тому

    WTF!!! I HAVE EXACTLY THE SAME MOUSE AND KEYBOARD111!!!11!1

  • @sashavanvehmendahl2356
    @sashavanvehmendahl2356 3 роки тому +1

    Side ways recoil ?

    • @oofin4304
      @oofin4304 3 роки тому +2

      Same thing but change the x axis of MoveMouseRelative()
      function OnEvent(event, arg)
      OutputLogMessage("Event: "..event.." Arg: "..arg.."
      ")
      if IsKeyLockOn("numlock") then
      if IsMouseButtonPressed(3) then
      repeat
      if IsMouseButtonPressed(1) then
      repeat
      MoveMouseRelative(2, 0)
      Sleep(10)
      until not IsMouseButtonPressed(1)
      end
      until not IsMouseButtonPressed(3)
      end
      end
      end

    • @sashavanvehmendahl2356
      @sashavanvehmendahl2356 3 роки тому

      O ok cool thanks will try that

    • @alam300
      @alam300 2 роки тому

      @@oofin4304 how can i do the same thing but making recoil work only when click left click without right click ?

    • @alam300
      @alam300 2 роки тому

      @@oofin4304 and if i want to to move to the left for 2 sec then go to right after 2 sec would it be possible ?

  • @ahsiong1990
    @ahsiong1990 3 роки тому

    any pubg latest patchs LUA for sale?

  • @AstraQwQ
    @AstraQwQ 3 роки тому

    i dont see an edit script button pls help

  • @shiva__2679
    @shiva__2679 Рік тому

    please make one for valorant recoil

  • @R4mbones
    @R4mbones 3 роки тому

    ooooo here are all the pro players from Pubg:))))) 1234 1234 1234 :)))) NOOOOOOBBBBBBSSSSSSSSS

  • @darkstrange
    @darkstrange 3 роки тому

    One question how can I make a macro I need for warface but I play on ps4

  • @pejcaa_
    @pejcaa_ 2 роки тому

    function OnEvent(event, arg)
    OutputLogMessage("Event: "..event.." Arg: "..arg.."
    ")
    end
    not working for some reason!
    Output: Event: PROFILE_ACTIVATED Arg: 0

  • @Blackbeard223
    @Blackbeard223 10 місяців тому

    Can anyone make make me a lua zero recoil for PUBG so I can use any gun with any scope plz

  • @videos40058
    @videos40058 3 роки тому

    dude i got banned with out even using these damn scripts. Only like opened the app once and nothing else now i got to answer for it lol.

    • @elimgarak1127
      @elimgarak1127 Рік тому

      Zero games ban people for having Logitech software.

  • @philslaya
    @philslaya 2 роки тому

    cool cool lamo

  • @1703gato
    @1703gato 3 роки тому

    siempre pensando en el dinero

  • @Lbezerra82
    @Lbezerra82 Рік тому

    Vai Brasilllll

  • @Just1kOoL
    @Just1kOoL 2 роки тому +1

    Mouse movements are being blocked by anticheats lately so.. Yea.

  • @4funrc11
    @4funrc11 3 роки тому

    _Spoiler Alert_ - Sadly this guy is only doing these Lua videos for 💰 income. Meh...

  • @fayezswilam5917
    @fayezswilam5917 3 роки тому

    discord link dosent work ?