| Repository | Content |
|---|---|
| This repository | English guide and usage instructions |
| Main repository | Lua source code and official updates |
👉 Always refer to the main repository for the latest code.
This project is for educational purposes only, including learning Lua scripting and Logitech G Hub automation features.
Please follow the rules of the games and platforms you use.
Use this project at your own risk.
If this project is helpful:
- Give a ⭐ to the main repository
- Share it with friends who might benefit
Thank you for your support! 🙏
This is a Lua auto recoil control script example for Logitech G Hub.
It simulates vertical mouse movement to help stabilize continuous firing.
This repository serves as a English-language guide, helping users understand the script’s purpose, configuration, and basic principles.
- Logitech mouse (supports Lua scripting in G Hub)
- Logitech G Hub installed
- Lua script added and enabled in G Hub
- 🔘 Middle Mouse Button: Toggle recoil control on/off
- 🖱️ Left Mouse Button: Automatically applies recoil while shooting
- 📉 Vertical recoil control only; does not affect horizontal movement
- 🎯 Skip recoil for initial shots to maintain a natural shooting feel
- 🎲 Slight random offset to reduce mechanical or robotic feel
💡 Common Adjustment Tips
Recoil too weak → Increase verticalPull
Recoil too strong → Decrease verticalPull
Shooting rhythm unstable → Fine-tune shotInterval
📝 Notes Always prioritize the main repository code for updates and bug fixes.
Core parameters in the script:
shotInterval = 9 -- Shooting interval (ms)
verticalPull = 4 -- Recoil strength (higher = stronger)
initialShots = 13 -- Number of initial shots without recoil