It's part of my sprint script, and I was wondering instead of making it change it back to 16, if there was a way to make it keep your original walkspeed, so if you were to pick up a speed power up that gave you 36 walkspeed, and you sprinted, and you stopped, it'd make it stay at 36 until the script from the powerup reset your walkspeed to default. Here is the script:
mouse.KeyUp:connect(function(key)
key = key:lower()
if key == string.char(48) then
character.Humanoid.WalkSpeed = 16
end
end)

3 comments
Don't forget the 'end'
You forgot when using 'if' statements you have to use a double equal 'if something1 == something2 then end'.
This really doesn't help me too much.