local ReplicatedStorage = game:GetService("ReplicatedStorage") local MouseClicked = ReplicatedStorage:WaitForChild("MouseClicked") local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "AutoClickGUI" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = game:GetService("CoreGui") local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0, 200, 0, 100) Frame.Position = UDim2.new(0.8, 0, 0.3, 0) Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Frame.BorderSizePixel = 0 Frame.Active = true Frame.Draggable = true Frame.Parent = ScreenGui local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 30) Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20) Title.Text = "Auto Clicker" Title.TextColor3 = Color3.fromRGB(0, 200, 255) Title.Font = Enum.Font.GothamBold Title.TextSize = 16 Title.Parent = Frame local ToggleButton = Instance.new("TextButton") ToggleButton.Size = UDim2.new(1, -20, 0, 45) ToggleButton.Position = UDim2.new(0, 10, 0, 40) ToggleButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) ToggleButton.Text = "OFF" ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleButton.Font = Enum.Font.GothamBold ToggleButton.TextSize = 20 ToggleButton.Parent = Frame local clicking = false ToggleButton.MouseButton1Click:Connect(function() clicking = not clicking if clicking then ToggleButton.Text = "ON" ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0) else ToggleButton.Text = "OFF" ToggleButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) end end) while true do if clicking then pcall(function() MouseClicked:FireServer() end) task.wait(0) else task.wait(0.1) end end