HELLO!
I’ve made an AFK Animation System, and below is an explanation of how it works:
NOTE: None of the animations are mine.
- The player is considered “active” when they perform actions like key presses (except for the mouse buttons and the “R” key, which are considered non-active inputs).
- When an active input is detected, the AFK timer is reset, and any currently playing idle animation is stopped.
- If the player is inactive for more than 3 seconds, a random idle animation will play from the list of animations.
- The script ensures that only one animation plays at a time, waiting for it to complete before checking again.
- The mouse buttons and “R” key are considered non-active inputs, meaning they don’t stop the AFK timer or interrupt idle animations. The reason the “R” key doesn’t interrupt the animations is because that’s how I toggle my mouse.
If you guys can give any feedback on how I can make this better or what to add I would appreciate it.
Video: