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 and input.KeyCode == Enum.KeyCode.RightControl then clicking = not clicking print("Autoclicker " .. (clicking and "enabled" or "disabled")) end end end) -- Main loop to handle clicking RunService.RenderStepped:Connect(function() if clicking then simulateClick() wait(clickInterval) end end)