if you need to set the walkspeed then just make a function first:
function SetWalkspeed(number)
local plr = game:GetService(“Players”).LocalPlayer
local char = plr.Character
if char ~= nil then
local hum = char:FindFirstChild(“Humanoid”)
if hum ~= nil then
hum.WalkSpeed = number
end
end
end
then use it, and if you need to rapidly do it just add this to the code:
local rs = game:GetService(“RunService”)
local ls = nil-- disconnect when done with
local walkspeed = 0-- change to desired speed
ls = rs.Stepped:Connect(function()
SetWalkspeed(walkspeed)
end)
and done! remember to disconnect the listener when you need to stop it, and if there is an error, let me know!