MaxproGlitcher

Anti afk

Aug 1st, 2022 (edited)
11,449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. -- Anti AFK script suitable for putting in autoexec.
  2. -- This script create by MaxproGlitcher#6199
  3. local function ShowNotification(title, text, icon, duration)
  4. game:GetService("StarterGui"):SetCore("SendNotification", {
  5. Title = "Anti Afk en cour..",
  6. Text = "Ton jeux seras jamais déconnecter",
  7. Icon = "rbxassetid://14485814558",
  8. Duration = 15
  9. })
  10. end
  11.  
  12. local function NotificationCoroutine()
  13. while true do
  14. ShowNotification("Refresh", "Le script a été exécuté", "rbxassetid://14485814558", 15)
  15. wait(15)
  16. end
  17. end
  18.  
  19. -- Créer une coroutine
  20. local coroutineHandle = coroutine.create(NotificationCoroutine)
  21.  
  22. -- Lancer la coroutine
  23. coroutine.resume(coroutineHandle)
  24.  
  25.  
  26. print ("Le code est en cour exercution")
  27.  
  28. while not game:IsLoaded() do wait() end
  29.  
  30. repeat wait() until game.Players.LocalPlayer.Character
  31.  
  32. Players = game:GetService("Players")
  33.  
  34. local GC = getconnections or get_signal_cons
  35. if GC then
  36. for i,v in pairs(GC(Players.LocalPlayer.Idled)) do
  37. if v["Disable"] then v["Disable"](v)
  38. elseif v["Disconnect"] then v["Disconnect"](v)
  39. end
  40. end
  41. else
  42. Players.LocalPlayer.Idled:Connect(function()
  43. VirtualUser:CaptureController()
  44. VirtualUser:ClickButton2(Vector2.new())
  45. end)
  46. end
  47.  
  48. print ("Le Code Anti-Afk a été exercuter et votre jeux ne seras jamais déconnecter.. ")
  49.  
  50. print ("Merci utiliser le script Anti-Afk by MaxproGlitcher")
  51.  
  52. game:GetService("StarterGui"):SetCore("SendNotification",{
  53. Title = " ANTI-AFK EXERCUTER",
  54. Text = "Laisser le jeux rouler",
  55. Icon = "rbxassetid://14542857685",
  56. Duration = 15
  57. })
  58.  
  59. warn ("Si vous rencontrez des problème avec mon script aller m'écricre en privé sur Discord: maxproglitcher ")
  60.  
  61. game.StarterGui:SetCore('SendNotification', { Title = 'Anti-AFK'; Text = 'Script create by MaxproGlitcher#6199 Anti-AFK activated'; })
  62. game.StarterGui:SetCore('SendNotification', { Title = 'Anti-AFK'; Text = 'Version 1.4'; })
Advertisement
Add Comment
Please, Sign In to add comment