How do you save the player's current walkspeed?

Basically, when the player clicks using the tool, it plays an animation. During the animation, the player is unable to move, and then after the animation, they are able to move again.

However, in my game different players can have different default walk speeds, so I want to be able to save that player’s current walk speed and then make that their walk speed after the animation as opposed to setting their walk speed to a set number.
(Ex: if a player’s walk speed is 35 then I want the script to set their walk speed to 35 after the animation is finished instead of forcing their walk speed to be a set number like 24 after the animation)

Here is what the script looks like:

script.Parent.Equipped:Connect(function(Mouse)
	Mouse.Button1Down:Connect(function()
		local Animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.M1Animation)
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
		Animation:Play()
		wait(1)
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 24 --Instead of 24, this needs to be what the player's walkspeed was before it was set to 0.
		script.Disabled = true
		wait (1.5)
		script.Disabled = false
	end)
end)

right before setting it, save the walkspeed to a variable

local oldSpeed = game.Players.LocalPlayer.Character.Humanoid.Walkspeed
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0

then you can set it after

game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = oldSpeed