Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make an AFK GUI for my game? And how can I make it not detect the character?

Asked by 4 years ago

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!

1 answer

Log in to vote
1
Answered by
Tokyo7979 131
4 years ago

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;

Ad

Answer this question