Run it
Copy the script and paste it into your executor.
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local clicking = false
local clickInterval = 0.01 -- Adjust this value for faster or slower clicking
-- Function to simulate a click
local function simulateClick()
local mouse = game.Players.LocalPlayer:GetMouse()
local clickEvent = Instance.new("RemoteEvent")
clickEvent.Name = "ClickEvent"
clickEvent.Parent = game.ReplicatedStorage
-- Fire the click event
clickEvent:FireServer(mouse.Hit.p)
end
-- Toggle clicking on key press
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if not gameProcessed then
if input.UserInputType == Enum.UserInputType.Keyboard input.KeyCode == .KeyCode.RightControl
clicking = clicking
( .. (clicking ))
)
RunService.RenderStepped:(()
clicking
()
(clickInterval)
)
right control to auto click and to stop auto clicking made with chatgpt