Uiom19
|
  |
| Joined: 17 Mar 2015 |
| Total Posts: 144 |
|
|
| 26 Mar 2017 01:00 PM |
| are there any good methods |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 26 Mar 2017 01:13 PM |
local player = game.PlayersLocalPlayer() loacl uis = game:GetService("UserInputService") local lastInput = tick() local timeout = 60 -- how many seconds for AFK to occur
uis.InputBegan:connect(function(input,gp) lastInput = tick() end)
while wait(1) do if tick()-lastInput > timeout then print(player,"is afk") end end
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 26 Mar 2017 01:14 PM |
Why did I put parenthesis on the first line
|
|
|
| Report Abuse |
|
|
| |
|
Uiom19
|
  |
| Joined: 17 Mar 2015 |
| Total Posts: 144 |
|
|
| 26 Mar 2017 03:18 PM |
| lol calls me a noob when u have 14 visits and my main has ######### |
|
|
| Report Abuse |
|
|
Uiom19
|
  |
| Joined: 17 Mar 2015 |
| Total Posts: 144 |
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 26 Mar 2017 03:46 PM |
Well if you can't do this then honestly you clickbaited all of your players with a 50/50 like/dislike piece of crap place that anyone should be ashamed to own.
|
|
|
| Report Abuse |
|
|
Isosta
|
  |
| Joined: 10 May 2015 |
| Total Posts: 14729 |
|
|
| 26 Mar 2017 03:46 PM |
| Soybeen you're giving people bad advice. ############################################################# |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 26 Mar 2017 03:47 PM |
Also he was talking to me.
|
|
|
| Report Abuse |
|
|
Isosta
|
  |
| Joined: 10 May 2015 |
| Total Posts: 14729 |
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 26 Mar 2017 03:48 PM |
"Usually fired two minutes after the game engine classes the player as idle."
Maybe he wants to wait 30 seconds or 5 minutes.
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 26 Mar 2017 03:49 PM |
I suppose you could check the time argument.
Yeah you're right that's more useful.
|
|
|
| Report Abuse |
|
|
Uiom19
|
  |
| Joined: 17 Mar 2015 |
| Total Posts: 144 |
|
|
| 26 Mar 2017 04:19 PM |
| lol the funny thing is i did |
|
|
| Report Abuse |
|
|