Walkspeed script breaking

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!

1 Like

For the loading screen: The backround blurs so I dont want the player walking

if thats the case then just anchor the hrp or set the parent of the ControlModule to nil (temporarily) (in LocalPlayer.PlayerScripts.PlayerModule.ControlModule), and then when you reenable controls, just set the parent back to PlayerModule.

Did you ever find the error? If not, tell me what is it outputing.