How do I change the humanoid walkspeed to 24 then when the animation stops the walkspeed resets to 16?
This script already works (Its a running anim script) I just want the walkspeed to 24 when I press Q and 7 seconds later, I want the Walkspeed to return to 16
wait(2)
local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
Mouse.KeyDown:connect(function(key)
if key == "q" then
s = player.Character.Humanoid:LoadAnimation(game.StarterPack.AnimScrip.Animation)
s:Play()
wait(7)
s:Stop()
end
end)
local Walk =game.Players.LocalPlayer.Humanoid
local Mouse = player:GetMouse()
Mouse.KeyDown:connect(function(key)
if key == "q" then
Walk.WalkSpeed = 24
wait(7)
Walk.WalkSpeed = 16
end
end)
I've tried many times, now I need assistance.

2 comments
Also, btw on line 9, Is it supposed to be AnimScrip or AnimScript with a "t"? Look at both answers are accept the one that helps you most! First is not always better!
Nah just AnimScrip