Universal Script πŸ“Œ
6.1k Views
7 Executions

L

Universal Script πŸ“Œ
vobBox
vobBoxPublished 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

L

View Raw
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


Comments

1
Log in to join the conversation. Login
skyislands's profile picture
skyislands2 years ago

what is this? also dont use chatgpt

1

More universal scripts

See all
Script hub
33.2k
298.5k
Bumped 3 hours ago
Script hub
23.7k
5.2k
Bumped 3 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
251
772
Bumped 3 hours ago
Universal Script πŸ“Œ
1.7k
31.0k
Bumped 3 hours ago
Script hub
4.1M
559.5k
Bumped 4 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
29.2k
Bumped 5 hours ago
Key System