I could make a script that could find out when the idle animation plays, but It doesn't work. There is a way to see if there is an idle player but It checks for players that have been idle for 2 min. How could you change it to 5 seconds instead of 2 min?
game.Players.Player.Idled:connect(function(time)
print("Player has been idle for " .. time .. " seconds")
end)

1 comment
You could write your own custom event using ticks and UserInputService.