Advertisement
HowToRoblox

AFKDetector

Feb 20th, 2021
4,483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. local uis = game:GetService("UserInputService")
  2.  
  3.  
  4. uis.WindowFocusReleased:Connect(function()
  5.    
  6.     game.ReplicatedStorage.IsAFK:FireServer(true)
  7. end)
  8.  
  9.  
  10. uis.WindowFocused:Connect(function()
  11.  
  12.     game.ReplicatedStorage.IsAFK:FireServer(false)
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement