There is a function inside of a player known as Idled. This basically controls if a player is idle or not. If this function were to be destroyed, then the player would never get disconnected.
However, destroying the function to enable a sort of anti afk requires a function only available to exploits called getconnections.
Since so, there would otherwise not be a way to disable the Idled function.
I think this is the system that got me inspired to release my own, it’s pretty decent from the showcase of the testing game, but can you make it were if someone says ‘i gotta go brb’ or ‘i gotta go afk’ it goes to the afk zone?
I get 2 errors in my output saying that the remote events “HitS” and “ExitAFK” are not a part of ReplicatedStorage whenever I run this code in my game. Did I do something wrong?
There are some things in the code that can be made better but overall its a good module.
I would recommend that you change the FaderScript from player.Character.Torso to player.Character.HumanoidRootPart. That way every type of player is supported and not just R6. There are a couple of other unnecessary things but that’s the main thing I would change.