My script is supposed to make my walkspeed 45 when pressing e, and to change the walkspeed back to normal when pressing e again, but it only makes the walkspeed change to 45, it doesn't change back to 16 when I press e again.
Here is the script:
plr = game.Players.LocalPlayer
mouse = plr:GetMouse()
mouse.KeyDown:connect(function(key)
if key == "e" then
plr.Character.Humanoid.WalkSpeed = 45
elseif key == "e" and plr.Character.Humanoid.WalkSpeed == 45 then
plr.Character.Humanoid.WalkSpeed = 16
end
end)
