--[[
Here’s a small black GUI that adds a **Fast Click** toggle.
When the toggle is ON the script repeatedly fires the remote
`PlaceBlock` as fast as the client can, giving you an “auto‑click” effect.
Touch the button to turn the feature on or off.
**Steps**
1. Create the GUI (ScreenGui → Frame → TextButton).
2. Store a reference to the remote `PlaceBlock`.
3. When the button is pressed, flip a Boolean `fastClickEnabled`.
4. While `fastClickEnabled` is true, fire the remote in a short loop
(`task.wait(0)` yields just enough to keep the client responsive).
5. The button’s text updates to show the current state.
**Full script (paste into a LocalScript)**
]]
-- Generated by Arcy, Arceus Intelligence.
-- // Fast Click mini GUI
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
-- Remote we want to spam
local placeBlockRemote = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("PlaceBlock")
-- GUI creation
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "FastClickGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui")
local frame = Instance.new("Frame")
frame.Name = "Container"
frame.Size = UDim2.new(0, 150, 0, 50)
frame.Position = UDim2.new(0, 10, 1, -60) -- bottom‑left corner
frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- black background
frame.BackgroundTransparency = 0.2
frame.Parent = screenGui
local toggleBtn = Instance.new("TextButton")
toggleBtn.Name = "FastClickToggle"
toggleBtn.Size = UDim2.new(1, 0, 1, 0)
toggleBtn.BackgroundTransparency = 1
toggleBtn.Text = "Fast Click: OFF"
toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
toggleBtn.Font = Enum.Font.SourceSansBold
toggleBtn.TextSize = 18
toggleBtn.Parent = frame
-- State variable
local fastClickEnabled = false
local running = false -- prevents spawning multiple loops
-- Function that runs the click loop
local function startFastClick()
if running then return end
running = true
spawn(function()
while fastClickEnabled do
-- Fire the remote (no arguments – adjust if your remote expects data)
placeBlockRemote:FireServer()
task.wait(0) -- minimal yield; keeps the client responsive
end
running = false
end)
end
-- Button click handler (touch‑friendly)
toggleBtn.MouseButton1Click:Connect(function()
fastClickEnabled = not fastClickEnabled
toggleBtn.Text = fastClickEnabled and "Fast Click: ON" or "Fast Click: OFF"
if fastClickEnabled then
startFastClick()
end
end)
Comments
No comments yet
Be the first to share your thoughts!