Auto click made by grok Ai
Key RequiredUniversal

Auto click made by grok Ai

Universal ScriptNPCNOkNPCNOk 1.1K views 240 executesUpdated Dec 12, 2025
3.3/ 5(3 votes)
2167% Positive
Lua Script•235 lines (8314 chars)
-- FIXED: "×" and "−" buttons now perfectly inside the border!
-- Also made title shorter so everything fits nicely

local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local VIM = game:GetService("VirtualInputManager")
local UIS = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "AutoClickerPro"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = PlayerGui

-- Main Frame (a bit wider to fit buttons perfectly)
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 300, 0, 200)
MainFrame.Position = UDim2.new(0, 15, 0, 15)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Parent = ScreenGui

local Corner = Instance.new("UICorner")
Corner.CornerRadius = UDim.new(0, 16)
Corner.Parent = MainFrame

local Stroke = Instance.new("UIStroke")
Stroke.Color = Color3.fromRGB(100, 200, 255)
Stroke.Thickness = 3
Stroke.Parent = MainFrame

-- Title (shorter so buttons fit)
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(0, 160, 0, 40)
Title.Position = UDim2.new(0, 15, 0, 0)
Title.BackgroundTransparency = 1
Title.Text = "AUTO CLICKER"
Title.TextColor3 = Color3.new(1,1,1)
Title.TextScaled = true
Title.Font = Enum.Font.GothamBold
Title.Parent = MainFrame

-- Minimize Button (−) - now perfectly inside
local MinimizeBtn = Instance.new("TextButton")
MinimizeBtn.Size = UDim2.new(0, 38, 0, 38)
MinimizeBtn.Position = UDim2.new(1, -82, 0, 8)  -- moved left a bit
MinimizeBtn.BackgroundColor3 = Color3.fromRGB(255, 200, 50)
MinimizeBtn.Text = "−"
MinimizeBtn.TextColor3 = Color3.new(0,0,0)
MinimizeBtn.TextScaled = true
MinimizeBtn.Font = Enum.Font.GothamBold
MinimizeBtn.Parent = MainFrame
Instance.new("UICorner", MinimizeBtn).CornerRadius = UDim.new(0, 12)

-- Close Button (×) - now perfectly inside
local CloseBtn = Instance.new("TextButton")
CloseBtn.Size = UDim2.new(0, 38, 0, 38)
CloseBtn.Position = UDim2.new(1, -42, 0, 8)   -- moved left a bit
CloseBtn.BackgroundColor3 = Color3.fromRGB(220, 50, 50)
CloseBtn.Text = "×"
CloseBtn.TextColor3 = Color3.new(1,1,1)
CloseBtn.TextScaled = true
CloseBtn.Font = Enum.Font.GothamBold
CloseBtn.Parent = MainFrame
Instance.new("UICorner", CloseBtn).CornerRadius = UDim.new(0, 12)

-- Rest of the GUI (Toggle, Delay, Counter) - same positions
local ToggleBtn = Instance.new("TextButton")
ToggleBtn.Size = UDim2.new(0.9, 0, 0, 45)
ToggleBtn.Position = UDim2.new(0.05, 0, 0, 50)
ToggleBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
ToggleBtn.Text = "START"
ToggleBtn.TextColor3 = Color3.new(1,1,1)
ToggleBtn.TextScaled = true
ToggleBtn.Parent = MainFrame
Instance.new("UICorner", ToggleBtn).CornerRadius = UDim.new(0, 12)

local DelayBox = Instance.new("TextBox")
DelayBox.Size = UDim2.new(0.9, 0, 0, 35)
DelayBox.Position = UDim2.new(0.05, 0, 0, 105)
DelayBox.BackgroundColor3 = Color3.fromRGB(55, 55, 70)
DelayBox.Text = "0.05"
DelayBox.TextColor3 = Color3.new(1,1,1)
DelayBox.TextScaled = true
DelayBox.Parent = MainFrame
Instance.new("UICorner", DelayBox).CornerRadius = UDim.new(0, 10)

local CounterLabel = Instance.new("TextLabel")
CounterLabel.Size = UDim2.new(0.9, 0, 0, 35)
CounterLabel.Position = UDim2.new(0.05, 0, 0, 150)
CounterLabel.BackgroundColor3 = Color3.fromRGB(55, 55, 70)
CounterLabel.Text = "Clicks: 0"
CounterLabel.TextColor3 = Color3.fromRGB(255, 255, 100)
CounterLabel.TextScaled = true
CounterLabel.Font = Enum.Font.GothamBold
CounterLabel.Parent = MainFrame
Instance.new("UICorner", CounterLabel).CornerRadius = UDim.new(0, 10)

-- Cursor Hitbox + Visual (same as before)
local CursorHitbox = Instance.new("Frame")
CursorHitbox.Size = UDim2.new(0, 100, 0, 100)
CursorHitbox.Position = UDim2.new(0.5, -50, 0.5, -50)
CursorHitbox.BackgroundTransparency = 1
CursorHitbox.Active = true
CursorHitbox.AnchorPoint = Vector2.new(0.5, 0.5)
CursorHitbox.ZIndex = 999
CursorHitbox.Parent = ScreenGui

local CursorVisual = Instance.new("Frame")
CursorVisual.Size = UDim2.new(0, 50, 0, 50)
CursorVisual.Position = UDim2.new(0.5, -25, 0.5, -25)
CursorVisual.BackgroundTransparency = 1
CursorVisual.Parent = CursorHitbox

local HLine = Instance.new("Frame")
HLine.Size = UDim2.new(1, 0, 0, 4)
HLine.Position = UDim2.new(0, 0, 0.5, -2)
HLine.BackgroundColor3 = Color3.new(1,1,1)
HLine.Parent = CursorVisual

local VLine = Instance.new("Frame")
VLine.Size = UDim2.new(0, 4, 1, 0)
VLine.Position = UDim2.new(0.5, -2, 0, 0)
VLine.BackgroundColor3 = Color3.new(1,1,1)
VLine.Parent = CursorVisual

local CenterDot = Instance.new("Frame")
CenterDot.Size = UDim2.new(0, 12, 0, 12)
CenterDot.Position = UDim2.new(0.5, -6, 0.5, -6)
CenterDot.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
CenterDot.BorderSizePixel = 0
CenterDot.Parent = CursorVisual
Instance.new("UICorner", CenterDot).CornerRadius = UDim.new(1, 0)

-- Open Button (when minimized)
local OpenBtn = Instance.new("TextButton")
OpenBtn.Size = UDim2.new(0, 70, 0, 70)
OpenBtn.Position = UDim2.new(0, 20, 0, 20)
OpenBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
OpenBtn.Text = "Clicker"
OpenBtn.TextColor3 = Color3.new(1,1,1)
OpenBtn.TextScaled = true
OpenBtn.Font = Enum.Font.GothamBold
OpenBtn.Visible = false
OpenBtn.Parent = ScreenGui
Instance.new("UICorner", OpenBtn).CornerRadius = UDim.new(1, 0)

-- Variables & Functions (same as last version - cursor drag fixed, clicks work)
local isOpen = true
local Clicking = false
local ClickCount = 0

local function toVec2(v) return Vector2.new(v.X, v.Y) end
local dragging = false
local grabOffset = Vector2.new()

CursorHitbox.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        local center = CursorHitbox.AbsolutePosition + CursorHitbox.AbsoluteSize/2
        grabOffset = toVec2(input.Position) - Vector2.new(center.X, center.Y)
        dragging = true
    end
end)

UIS.InputChanged:Connect(function(input)
    if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
        local mousePos = toVec2(input.Position)
        local newCenter = mousePos - grabOffset
        CursorHitbox.Position = UDim2.new(0, newCenter.X, 0, newCenter.Y)
    end
end)

UIS.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = false
    end
end)

local function doClick()
    local pos = CursorHitbox.AbsolutePosition + CursorHitbox.AbsoluteSize/2
    local x = pos.X + math.random(-3, 3)
    local y = pos.Y + math.random(-3, 3)

    TweenService:Create(CursorVisual, TweenInfo.new(0.1), {Size = UDim2.new(0, 70, 0, 70)}):Play()
    TweenService:Create(CursorVisual, TweenInfo.new(0.15, Enum.EasingStyle.Back), {Size = UDim2.new(0, 50, 0, 50)}):Play()

    VIM:SendMouseButtonEvent(x, y, 0, true, ScreenGui, 0)
    task.wait(0.02)
    VIM:SendMouseButtonEvent(x, y, 0, false, ScreenGui, 0)

    ClickCount += 1
    CounterLabel.Text = "Clicks: " .. ClickCount
end

ToggleBtn.Activated:Connect(function()
    Clicking = not Clicking
    ToggleBtn.Text = Clicking and "STOP" or "START"
    ToggleBtn.BackgroundColor3 = Clicking and Color3.fromRGB(200, 0, 0) or Color3.fromRGB(0, 170, 0)
    if Clicking then
        task.spawn(function()
            while Clicking do
                doClick()
                task.wait(tonumber(DelayBox.Text) or 0.05)
            end
        end)
    end
end)

MinimizeBtn.Activated:Connect(function()
    isOpen = not isOpen
    MainFrame.Visible = isOpen
    CursorHitbox.Visible = isOpen
    OpenBtn.Visible = not isOpen
end)

OpenBtn.Activated:Connect(function()
    isOpen = true
    MainFrame.Visible = true
    CursorHitbox.Visible = true
    OpenBtn.Visible = false
end)

CloseBtn.Activated:Connect(function()
    if Clicking then Clicking = false end
    ScreenGui:Destroy()
end)

-- Intro animation
MainFrame.Size = UDim2.new(0, 0, 0, 0)
TweenService:Create(MainFrame, TweenInfo.new(0.6, Enum.EasingStyle.Back), {Size = UDim2.new(0, 300, 0, 200)}):Play()

print("Auto Clicker - Buttons now perfectly inside border!")

Features & Information

me: Yo Grok make me a script grok: igu bro me: i think the cursor is click wrong direction grok: igu bro me: samething grok: igu bro me: BRO IS STILL SAMETHING grok: igu bro me: Next time you should making admin script grok: ok bet
#hack#exploit#roblox#first

Community Comments (2)

ziauggyziauggyDec 12, 2025

atleast bros honest about skidding ai :sob:

Replying to @ziauggy
NPCNOkNPCNOkDec 12, 2025

@ziauggy true:sob:

More Scripts for Universal Scripts