
Keyless

local clickRemote = game:GetService("ReplicatedStorage")
:WaitForChild("Events")
:WaitForChild("Remotes")
:WaitForChild("Click")
local TweenService = game:GetService("TweenService")
local player = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
gui.ResetOnSpawn = false
-- Main Frame
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 240, 0, 150)
frame.Position = UDim2.new(0.5, -120, 0.5, -75)
frame.BackgroundColor3 = Color3.fromRGB(25,25,25)
frame.Active = true
frame.Draggable = true
-- Rounded corners
local corner = Instance.new("UICorner", frame)
corner.CornerRadius = UDim.new(0, 10)
-- Title Bar
local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1, 0, 0, 30)
title.BackgroundTransparency = 1
title.Text = "Awesome Auto Clicker"
title.TextColor3 = Color3.fromRGB(255,255,255)
title.Font = Enum.Font.GothamBold
title.TextSize = 16
-- Minimize Button
local minimize = Instance.new("TextButton", frame)
minimize.Size = UDim2.new(0, 30, 0, 30)
minimize.Position = UDim2.new(1, -35, 0, 0)
minimize.Text = "-"
minimize.BackgroundTransparency = 1
minimize.TextColor3 = Color3.fromRGB(200,200,200)
minimize.Font = Enum.Font.GothamBold
minimize.TextSize = 18
-- Speed Box
local speedBox = Instance.new("TextBox", frame)
speedBox.Size = UDim2.new(0, 200, 0, 35)
speedBox.Position = UDim2.new(0, 20, 0, 40)
speedBox.PlaceholderText = "Speed (0 = fastest)"
speedBox.Text = "0.1"
speedBox.BackgroundColor3 = Color3.fromRGB(40,40,40)
speedBox.TextColor3 = Color3.fromRGB(255,255,255)
speedBox.Font = Enum.Font.Gotham
speedBox.TextSize = 14
local sbCorner = Instance.new("UICorner", speedBox)
sbCorner.CornerRadius = UDim.new(0, 6)
-- Toggle Button
local toggle = Instance.new("TextButton", frame)
toggle.Size = UDim2.new(0, 200, 0, 35)
toggle.Position = UDim2.new(0, 20, 0, 90)
toggle.Text = "Start"
toggle.BackgroundColor3 = Color3.fromRGB(0,170,100)
toggle.TextColor3 = Color3.fromRGB(255,255,255)
toggle.Font = Enum.Font.GothamBold
toggle.TextSize = 14
local tgCorner = Instance.new("UICorner", toggle)
tgCorner.CornerRadius = UDim.new(0, 6)
-- Variables
local running = false
local delay = 0.1
local minimized = false
-- Speed update
speedBox.FocusLost:Connect(function()
local num = tonumber(speedBox.Text)
if num then
delay = num
end
end)
-- Toggle loop
toggle.MouseButton1Click:Connect(function()
running = not running
toggle.Text = running and "Stop" or "Start"
toggle.BackgroundColor3 = running and Color3.fromRGB(170,50,50) or Color3.fromRGB(0,170,100)
if running then
task.spawn(function()
while running do
clickRemote:FireServer()
task.wait(delay)
end
end)
end
end)
-- Tween settings
local tweenInfo = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
-- Minimize / Expand with animation
minimize.MouseButton1Click:Connect(function()
minimized = not minimized
if minimized then
minimize.Text = "+"
TweenService:Create(frame, tweenInfo, {
Size = UDim2.new(0, 240, 0, 35)
}):Play()
task.wait(0.1)
speedBox.Visible = false
toggle.Visible = false
else
minimize.Text = "-"
speedBox.Visible = true
toggle.Visible = true
TweenService:Create(frame, tweenInfo, {
Size = UDim2.new(0, 240, 0, 150)
}):Play()
end
end)
I add gui and input number for speed so that you or you guys control the speed. :3