This should cause the WalkSpeed of the players to increase by 1 everytime "R" is pressed.
It doesn't work
Player = game.Players.LocalPlayer Character = Player.Character Humanoid = Character.Humanoid WalkSpeed = Humanoid.WalkSpeed
game:GetService("UserInputService").InputBegan:connect(function(LetsSee) if LetsSee.KeyCode == Enum.KeyCode.R then print("R was pressed") WalkSpeed = WalkSpeed + 1 end end)

4 comments
I made WalkSpeed = Humanoid.WalkSpeed, Humanoid = Character.Humanoid, Character = Player.Character, Player = game.Players.LocalPlayer
So WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed
Yes, but "Walkspeed" alone is a separate variable from "Humanoid.Walkspeed".
To be more specific, variable "WalkSpeed" is set to the player's WalkSpeed value, and not the value itself.