Advertisement
MaxproGlitcher

Scritp By Max auto cliker

Aug 24th, 2022
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. --Guid Auto Cliker By MaxproGlitcher Discord:MaxproGlitcher#6199
  2.  
  3. --// Services \\--
  4. local CoreGui = game:GetService("CoreGui")
  5. local Players = game:GetService("Players")
  6. local VirtualInputManager = game:GetService("VirtualInputManager")
  7.  
  8. --// Variables \\--
  9. local Player = Players.LocalPlayer
  10. local Enabled = false
  11. local Mouse = Player:GetMouse()
  12. local X, Y = 0, 0
  13. local LastC = Color3.new(1, 0, 0)
  14. local LastU = tick()
  15.  
  16. --// Exploit Fix \\--
  17. if not pcall(function() return syn.protect_gui end) then
  18. syn = {}
  19. syn.protect_gui = function(A_1)
  20. A_1.Parent = CoreGui
  21. end
  22. end
  23.  
  24. --// UI Library \\--
  25. local Library = loadstring(game:HttpGetAsync('https://pastebin.com/raw/B0ULq3Zs'))()
  26. local Window = Library:CreateWindow("AutoClicker by Max")
  27. Enabled_1 = Window:AddColor({
  28. text = 'Status:',
  29. flag = "Scxtt#0001",
  30. color = Color3.new(1, 0, 0),
  31. callback = function(A_1)
  32. -- "Enabled" Color
  33. local NewColor = Color3.new(0, 1, 0)
  34. if Enabled == false then
  35. NewColor = Color3.new(1, 0, 0)
  36. end
  37. if NewColor ~= Last or A_1 ~= NewColor then
  38. Last = NewColor
  39. Enabled_1:SetColor(NewColor)
  40. end
  41. end
  42. })
  43. Window:AddBind({
  44. text = 'Toggle',
  45. callback = function()
  46. -- Toggle
  47. Enabled = not Enabled
  48. -- "Enabled" Color
  49. local NewColor = Color3.new(0, 1, 0)
  50. if Enabled == false then
  51. NewColor = Color3.new(1, 0, 0)
  52. end
  53. if NewColor ~= Last then
  54. Last = NewColor
  55. Enabled_1:SetColor(NewColor)
  56. end
  57. -- Click Position
  58. if Enabled then
  59. -- Update Mouse Pos
  60. X, Y = Mouse.X, Mouse.Y + 10
  61. -- Update Box
  62. Box_1:SetValue()
  63. else
  64. X, Y = 0, 0
  65. Box_1:SetValue()
  66. end
  67. -- AutoClick
  68. while Enabled do
  69. VirtualInputManager:SendMouseButtonEvent(X, Y, 0, true, game, 1)
  70. VirtualInputManager:SendMouseButtonEvent(X, Y, 0, false, game, 1)
  71. wait(Library.flags.Interval)
  72. end
  73. end
  74. })
  75. Window:AddSlider({
  76. text = 'Interval',
  77. min = 0.01,
  78. max = 2,
  79. value = 1,
  80. float = 0.01
  81. })
  82. Box_1 = Window:AddBox({
  83. text = "AutoClick Position:",
  84. value = "X: " .. X .. ", Y: " .. Y,
  85. callback = function()
  86. if tick()-LastU > 0.1 then
  87. LastU = tick()
  88. Box_1:SetValue("X: " .. X .. ", Y: " .. Y)
  89. end
  90. end
  91. })
  92. Library:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement