local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") local VirtualUser = game:GetService("VirtualUser") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") if playerGui:FindFirstChild("AutoClickRemoteGui") then playerGui.AutoClickRemoteGui:Destroy() end -- Anti-AFK tự động khi Roblox báo Idled player.Idled:Connect(function() pcall(function() VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new()) end) end) local screenGui = Instance.new("ScreenGui") screenGui.Name = "AutoClickRemoteGui" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling screenGui.Parent = playerGui local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 235, 0, 145) mainFrame.Position = UDim2.new(0.5, -117, 0.4, -72) mainFrame.BackgroundColor3 = Color3.fromRGB(28, 28, 34) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Parent = screenGui local mainCorner = Instance.new("UICorner") mainCorner.CornerRadius = UDim.new(0, 10) mainCorner.Parent = mainFrame local mainStroke = Instance.new("UIStroke") mainStroke.Color = Color3.fromRGB(70, 70, 85) mainStroke.Thickness = 1.5 mainStroke.Parent = mainFrame local titleLabel = Instance.new("TextLabel") titleLabel.Name = "Title" titleLabel.Size = UDim2.new(1, -50, 0, 30) titleLabel.Position = UDim2.new(0, 10, 0, 4) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "Auto Click + Anti-AFK" titleLabel.TextColor3 = Color3.fromRGB(240, 240, 245) titleLabel.TextSize = 14 titleLabel.Font = Enum.Font.GothamBold titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.Parent = mainFrame local minimizeBtn = Instance.new("TextButton") minimizeBtn.Name = "MinimizeButton" minimizeBtn.Size = UDim2.new(0, 26, 0, 26) minimizeBtn.Position = UDim2.new(1, -34, 0, 6) minimizeBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 62) minimizeBtn.BorderSizePixel = 0 minimizeBtn.Text = "-" minimizeBtn.TextColor3 = Color3.fromRGB(240, 240, 245) minimizeBtn.TextSize = 16 minimizeBtn.Font = Enum.Font.GothamBold minimizeBtn.Parent = mainFrame local minCorner = Instance.new("UICorner") minCorner.CornerRadius = UDim.new(0, 6) minCorner.Parent = minimizeBtn local contentFrame = Instance.new("Frame") contentFrame.Name = "Content" contentFrame.Size = UDim2.new(1, 0, 1, -34) contentFrame.Position = UDim2.new(0, 0, 0, 34) contentFrame.BackgroundTransparency = 1 contentFrame.Parent = mainFrame local toggleButton = Instance.new("TextButton") toggleButton.Name = "ToggleButton" toggleButton.Size = UDim2.new(1, -24, 0, 40) toggleButton.Position = UDim2.new(0, 12, 0, 6) toggleButton.BackgroundColor3 = Color3.fromRGB(185, 55, 65) toggleButton.BorderSizePixel = 0 toggleButton.Text = "TRẠNG THÁI: TẮT" toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) toggleButton.TextSize = 14 toggleButton.Font = Enum.Font.GothamBold toggleButton.Parent = contentFrame local btnCorner = Instance.new("UICorner") btnCorner.CornerRadius = UDim.new(0, 8) btnCorner.Parent = toggleButton local countLabel = Instance.new("TextLabel") countLabel.Name = "Counter" countLabel.Size = UDim2.new(1, -24, 0, 20) countLabel.Position = UDim2.new(0, 12, 0, 52) countLabel.BackgroundTransparency = 1 countLabel.Text = "Đã gửi: 0 | Anti-AFK: Bật" countLabel.TextColor3 = Color3.fromRGB(175, 185, 205) countLabel.TextSize = 12 countLabel.Font = Enum.Font.GothamMedium countLabel.TextXAlignment = Enum.TextXAlignment.Left countLabel.Parent = contentFrame local statusLabel = Instance.new("TextLabel") statusLabel.Name = "Status" statusLabel.Size = UDim2.new(1, -24, 0, 20) statusLabel.Position = UDim2.new(0, 12, 0, 74) statusLabel.BackgroundTransparency = 1 statusLabel.Text = "Delay: 0.01s | Sẵn sàng" statusLabel.TextColor3 = Color3.fromRGB(145, 155, 175) statusLabel.TextSize = 11 statusLabel.Font = Enum.Font.Gotham statusLabel.TextXAlignment = Enum.TextXAlignment.Left statusLabel.Parent = contentFrame -- Kéo thả GUI local dragging = false local dragInput = nil local dragStart = nil local startPos = nil local function updateInput(input) local delta = input.Position - dragStart mainFrame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end mainFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = mainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) mainFrame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then updateInput(input) end end) -- Thu gọn / mở rộng GUI local minimized = false minimizeBtn.MouseButton1Click:Connect(function() minimized = not minimized contentFrame.Visible = not minimized if minimized then minimizeBtn.Text = "+" mainFrame.Size = UDim2.new(0, 235, 0, 38) else minimizeBtn.Text = "-" mainFrame.Size = UDim2.new(0, 235, 0, 145) end end) -- Logic vòng lặp 0.01s local running = false local clickCount = 0 local function getClickRemote() local remotes = ReplicatedStorage:FindFirstChild("Remotes") local events = remotes and remotes:FindFirstChild("Events") return events and events:FindFirstChild("ClickRemote") end local function startLoop() if running then return end running = true toggleButton.Text = "TRẠNG THÁI: BẬT" toggleButton.BackgroundColor3 = Color3.fromRGB(45, 165, 95) statusLabel.Text = "Đang gửi FireServer() mỗi 0.01s..." statusLabel.TextColor3 = Color3.fromRGB(120, 230, 160) task.spawn(function() while running do local event = getClickRemote() if event and event:IsA("RemoteEvent") then local ok = pcall(function() event:FireServer() end) if ok then clickCount += 1 countLabel.Text = "Đã gửi: " .. tostring(clickCount) .. " | Anti-AFK: Bật" end else statusLabel.Text = "Không tìm thấy ClickRemote!" statusLabel.TextColor3 = Color3.fromRGB(255, 130, 130) end task.wait(0.01) end end) end local function stopLoop() running = false toggleButton.Text = "TRẠNG THÁI: TẮT" toggleButton.BackgroundColor3 = Color3.fromRGB(185, 55, 65) statusLabel.Text = "Đã tạm dừng" statusLabel.TextColor3 = Color3.fromRGB(145, 155, 175) end toggleButton.MouseButton1Click:Connect(function() if running then stopLoop() else startLoop() end end)