local function SetWalkSpeedForPlayers(Players, WalkSpeed)
for _, Player in pairs(Players) do
local Humanoid = (Player.Character.Parent ~= nil) and Player.Character:WaitForChild("Humanoid")
if Humanoid then
Humanoid.WalkSpeed = WalkSpeed
end
end
end
SetWalkSpeedForPlayers(game.Players:GetPlayers(), 0)
wait(5)
SetWalkSpeedForPlayers(game.Players:GetPlayers(), 16)
I'm not trying to change the walk speed of all the players as soon as they join, but i'm just trying to make a script that changes the walk speed of all the players to 0 and then after 5 seconds go back to the regular 16 walk speed, but my script is not working. Help?
