Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Credits \\--
- --[[ Ezpi#0474 - Creator of this script ]]--
- --// Services \\--
- local CoreGui = game:GetService("CoreGui")
- local Players = game:GetService("Players")
- local VirtualInputManager = game:GetService("VirtualInputManager")
- --// Variables \\--
- local Player = Players.LocalPlayer
- local Enabled = false
- local Mouse = Player:GetMouse()
- local X, Y = 0, 0
- local LastC = Color3.new(1, 0, 0)
- local LastU = tick()
- --// Exploit Fix \\--
- if not pcall(function() return syn.protect_gui end) then
- syn = {}
- syn.protect_gui = function(A_1)
- A_1.Parent = CoreGui
- end
- end
- --// UI Library \\--
- local Library = loadstring(game:HttpGetAsync('https://pastebin.com/raw/edJT9EGX'))()
- local Window = Library:CreateWindow("AutoClicker by Ezpi")
- local Enabled_1 = Window:AddColor({
- text = 'Status:',
- flag = "Ezpi_1",
- color = Color3.new(1, 0, 0),
- callback = function(A_1)
- -- "Enabled" Color
- local NewColor = Color3.new(0, 1, 0)
- if Enabled == false then
- NewColor = Color3.new(1, 0, 0)
- end
- if NewColor ~= LastC or A_1 ~= NewColor then
- LastC = NewColor
- Enabled_1:SetColor(NewColor)
- end
- end
- })
- local Box_1 = Window:AddBox({
- text = "AutoClick Position:",
- value = "X: " .. X .. ", Y: " .. Y,
- callback = function()
- if tick() - LastU > 0.1 then
- LastU = tick()
- Box_1:SetValue("X: " .. X .. ", Y: " .. Y)
- end
- end
- })
- local AutoClickerToggle
- AutoClickerToggle = Window:AddToggle({
- text = 'Toggle',
- callback = function(value)
- Enabled = value
- -- "Enabled" Color
- local NewColor = Color3.new(0, 1, 0)
- if Enabled == false then
- NewColor = Color3.new(1, 0, 0)
- end
- if NewColor ~= LastC then
- LastC = NewColor
- Enabled_1:SetColor(NewColor)
- end
- -- Click Position
- if Enabled then
- -- Update Mouse Pos
- X, Y = Mouse.X, Mouse.Y + 10
- -- Update Box
- Box_1:SetValue("X: " .. X .. ", Y: " .. Y)
- -- AutoClick
- while Enabled and AutoClickerToggle:GetValue() do
- VirtualInputManager:SendMouseButtonEvent(X, Y, 0, true, game, 1)
- VirtualInputManager:SendMouseButtonEvent(X, Y, 0, false, game, 1)
- wait(Library.flags.Interval)
- end
- else
- X, Y = 0, 0
- Box_1:SetValue("X: " .. X .. ", Y: " .. Y)
- end
- end
- })
- Window:AddSlider({
- text = 'Interval',
- flag = "Interval",
- min = 0.001,
- max = 2,
- value = 1,
- callback = function(value)
- Library.flags.Interval = value
- end
- })
- Library:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement