-- Create a ScreenGui
local gui = [Link]("ScreenGui")
[Link] = "SpeedGUI"
[Link] = [Link]
-- Create a Frame
local frame = [Link]("Frame")
[Link] = [Link](0, 200, 0, 100)
[Link] = [Link](0, 10, 0.5, -50) -- Modified position to display on the
left side
frame.BackgroundColor3 = [Link](255, 255, 255)
[Link] = gui
-- Create a TextBox
local textBox = [Link]("TextBox")
[Link] = [Link](0, 150, 0, 30)
[Link] = [Link](0.5, -75, 0.2, 0)
[Link] = "Speed Amount"
[Link] = frame
-- Create a TextLabel
local label = [Link]("TextLabel")
[Link] = [Link](0, 150, 0, 30)
[Link] = [Link](0.5, -75, 0.4, 0)
[Link] = "Enter a speed value"
[Link] = frame
-- Create a TextButton
local button = [Link]("TextButton")
[Link] = [Link](0, 100, 0, 30)
[Link] = [Link](0.5, -50, 0.7, 0)
[Link] = "Go"
[Link] = frame
-- Function to update walk speed
local function updateWalkSpeed()
local speedValue = tonumber([Link])
if speedValue then
[Link] = speedValue
end
end
-- Bind the button click event
button.MouseButton1Click:Connect(updateWalkSpeed)