Untitled
unknown
plain_text
3 years ago
2.6 kB
8
Indexable
--// 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")
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 ~= Last or A_1 ~= NewColor then
Last = NewColor
Enabled_1:SetColor(NewColor)
end
end
})
Window:AddBind({
text = 'Toggle',
callback = function()
-- Toggle
Enabled = not Enabled
-- "Enabled" Color
local NewColor = Color3.new(0, 1, 0)
if Enabled == false then
NewColor = Color3.new(1, 0, 0)
end
if NewColor ~= Last then
Last = 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()
else
X, Y = 0, 0
Box_1:SetValue()
end
-- AutoClick
while Enabled do
VirtualInputManager:SendMouseButtonEvent(X, Y, 0, true, game, 1)
VirtualInputManager:SendMouseButtonEvent(X, Y, 0, false, game, 1)
wait(Library.flags.Interval)
end
end
})
Window:AddSlider({
text = 'Interval',
min = 0.01,
max = 2,
value = 1,
float = 0.01
})
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
})
Library:Init()Editor is loading...