
6.1k Views
6 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
L
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local autoWalk = false
local humanoid = nil
-- Create the UI only once
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AutoWalkGUI"
screenGui.ResetOnSpawn = false -- Prevent it from resetting on death
screenGui.Parent = playerGui
local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(0, 120, 0, 40)
toggleButton.Position = UDim2.new(0, 20, 0, 20)
toggleButton.Text = "Start Walking"
toggleButton.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
toggleButton.TextColor3 = Color3.new(1, 1, 1)
toggleButton.Font = Enum.Font.SourceSansBold
toggleButton.TextSize = 22
toggleButton.Parent = screenGui
local function updateButtonUI()
if autoWalk then
toggleButton.Text = "Stop Walking"
toggleButton.BackgroundColor3 = Color3.fromRGB(150, 50, 50)
else
toggleButton.Text = "Start Walking"
toggleButton.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
end
end
local function toggleAutoWalk()
autoWalk = not autoWalk
updateButtonUI()
end









what is this? also dont use chatgpt