
Universal Script – click AFK
--========================================
-- CLICK TEST
-- QUADRADO MOVEL - PRETO E BRANCO
--========================================
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- EVITAR DUPLICAR A GUI
local oldGui = playerGui:FindFirstChild("click TEST")
if oldGui then
oldGui:Destroy()
end
local gui = Instance.new("ScreenGui")
gui.Name = "click TEST"
gui.ResetOnSpawn = false
gui.Parent = playerGui
-- BOTAO QUADRADO
local toggle = Instance.new("TextButton")
toggle.Name = "ToggleButton"
toggle.Size = UDim2.fromOffset(70, 70)
toggle.Position = UDim2.new(0, 20, 0.6, 0)
toggle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
toggle.BorderColor3 = Color3.fromRGB(255, 255, 255)
toggle.BorderSizePixel = 2
toggle.Text = "CLICK"
toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
toggle.TextSize = 16
toggle.Font = Enum.Font.GothamBlack
toggle.Active = true
toggle.Parent = gui
-- MENU
local menu = Instance.new("Frame")
menu.Name = "MainMenu"
menu.Size = UDim2.fromOffset(260, 180)
menu.Position = UDim2.new(0.5, -130, 0.5, -90)
menu.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
menu.BorderColor3 = Color3.fromRGB(255, 255, 255)
menu.BorderSizePixel = 2
menu.Visible = false
menu.Parent = gui
-- TITULO
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 0, 45)
title.BackgroundTransparency = 1
title.Text = "click TEST"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Font = Enum.Font.GothamBlack
title.TextSize = 18
title.Parent = menu
-- BOTAO DE TESTE
local button = Instance.new("TextButton")
button.Size = UDim2.new(0.8, 0, 0, 45)
button.Position = UDim2.new(0.1, 0, 0, 65)
button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
button.BorderColor3 = Color3.fromRGB(255, 255, 255)
button.BorderSizePixel = 1
button.TextColor3 = Color3.fromRGB(255, 255, 255)
button.Text = "CLIQUE AQUI"
button.Font = Enum.Font.GothamBold
button.TextSize = 14
button.Parent = menu
local count = 0
button.Activated:Connect(function()
count += 1
button.Text = "CLIQUES: " .. count
end)
-- ARRASTAR O QUADRADO NO PC E CELULAR
local dragging = false
local pressPosition
local buttonStartPosition
local activeInput
local moved = false
local dragThreshold = 8
toggle.InputBegan:Connect(function(input)
if input.UserInputType ~= Enum.UserInputType.Touch
and input.UserInputType ~= Enum.UserInputType.MouseButton1 then
return
end
dragging = true
moved = false
activeInput = input
pressPosition = input.Position
buttonStartPosition = toggle.Position
end)
UIS.InputChanged:Connect(function(input)
if not dragging then
return
end
local validInput =
input.UserInputType == Enum.UserInputType.MouseMovement
or (input.UserInputType == Enum.UserInputType.Touch
and activeInput == input)
if validInput then
local delta = input.Position - pressPosition
if delta.Magnitude > dragThreshold then
moved = true
end
if moved then
toggle.Position = UDim2.new(
buttonStartPosition.X.Scale,
buttonStartPosition.X.Offset + delta.X,
buttonStartPosition.Y.Scale,
buttonStartPosition.Y.Offset + delta.Y
)
end
end
end)
UIS.InputEnded:Connect(function(input)
if input == activeInput
or input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
activeInput = nil
end
end)
-- ABRIR E FECHAR COM UM TOQUE/CLIQUE
local lastPressPosition
local wasDragging = false
toggle.Activated:Connect(function()
if not moved then
menu.Visible = not menu.Visible
end
end)
print("click TEST carregado!")How to Execute Universal Script – click AFK
Step 1: Copy Code: Click the Copy Code button in the viewer above to grab the clean Lua loadstring.
Step 2: Launch Executor: Open a compatible, unpatched executor. If you need one, check our Roblox Executors Directory.
Step 3: Join Experience: Launch Roblox and join Universal Script.
Step 4: Attach & Run: Attach/inject your executor into the Roblox process, paste the code into the script tab, and press Execute.
Created By
View Author ProfileFeatures & Information
Script Changelog (1)
Community Comments (0)
No comments yet for this script.
Frequently Asked Questions
How do I execute Universal Script – click AFK in Roblox?
To run Universal Script – click AFK, copy the Lua loadstring from the code viewer above, launch Roblox and join Universal Script, attach a working executor (such as Potassium, Solara, or Delta from our Executors directory), paste the code into your executor console, and click Execute.
Is Universal Script – click AFK keyless or does it require an access key?
Universal Script – click AFK requires an access key. You can retrieve the official key directly using the Get Script Key link provided above.
Is Universal Script – click AFK currently safe and working?
This script is active and operational. Always test scripts using a secondary (alt) Roblox account to safeguard your main profile against anti-cheat bans.


![Ez Hub [Open Source] [150+ games] - Verified script for Universal Script](https://media.kocakz.me/b74a9ac15370ba766b2fa9531f17c9dad2c0befb2b951693ae723e4c7d2c3fb6.webp)

![[KEYLESS] Moondiety Script | 20+ supported Games - Verified script for Universal Script](https://media.kocakz.me/6834c33a36c9fbe66afae4c6754c2b80386ce636b2f972464a95866f4b6a42eb.webp)

