Universal Script 📌
6.1k Views
6 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
Universal Script 📌
783
5.0k
Bumped 2 hours ago
Universal Script 📌
6.2k
54.4k
Bumped 2 hours ago
Universal Script 📌
2.4k
2.1k
Bumped 3 hours ago
Key System
Script hub
14.4k
75.0k
Bumped 5 hours ago
Universal Script 📌
97
99
Approved 6 hours ago
Key System
Universal Script 📌
97
120
Approved 7 hours ago