Hi! I have recently made a Imagebutton based ScreenGUI, where when you click it, it changes the player walkspeed from the standard 16 studs/sec to 25 to make the player move faster, basically a button making the player go faster.
The localscript works perfectly fine and all, but I want to be able to script it so when you click it again it reverts back to the normal 16 walkspeed withouth having to use MouseButton1Click to change from 16 to 25 and then use MouseButton2Click. So basically to click it once and it changes walkspeed from standard 16 to 25, and then to be able to click again to change back from 25 to 16 and repeat etc.
My current GUI and localscript is located simple in StarterGUI like this:

This is my current script that just changes speed just from 16 to 25, but not back:
local players = game.Players.LocalPlayer
local runningspeed = 25
script.Parent.MouseButton1Click:Connect(function()
players.Character.Humanoid.WalkSpeed = runningspeed
end)
Thanks for all your help! Just to make it clear that my aim is just to be able to change it from the standard walk speed to 25 like the current script above does, but then be able to click again and change it back to 16 and so on!
Much appreciated, DannyGT7