So my script detects if there is a character but if there is no character then it will not bother with them. So how could I make it not detect the character if they hit the Afk Button. If you could help me. I would accept your answer and upvote it thanks!
✓ ANSWER ACCEPTED
How do I make an AFK GUI for my game? And how can I make it not detect the character?
1 answer
✓ Accepted answer
You can add a boolean value to the character and make a RemoteEvent that changes the value through the server everytime the player presses the AFK button. And when it is teleporting the players, do an if statement to check if that player is "AFK". If the player is not AFK, then carry on with the script, if they are AFK then just leave an empty space there so it leaves them alone;
This discussion is preserved as it was. New answers, comments, and votes are closed.
