US Trends

how to turn on run/walk in Roblox

To turn on run/walk in Roblox Studio , the usual method is to make a simple GUI button or keybind that changes the player’s Humanoid.WalkSpeed. A common setup is 16 for walking and something like 24–30 for running.

Simple walk/run toggle

  1. Open your game in Roblox Studio.
  2. In StarterGui , add a ScreenGui and a TextButton.
  3. Add a LocalScript under the button.
  4. Use code like this:
lua

local button = script.Parent
local player = game.Players.LocalPlayer

local function getChar()
	return player.Character or player.CharacterAdded:Wait()
end

local running = false

button.MouseButton1Click:Connect(function()
	local char = getChar()
	local hum = char:WaitForChild("Humanoid")

	running = not running
	if running then
		hum.WalkSpeed = 28
		button.Text = "Walk"
	else
		hum.WalkSpeed = 16
		button.Text = "Run"
	end
end)

That toggles between walk and run when the button is clicked, which matches the common Roblox GUI approach shown in tutorial examples.

If you want shift-to-run

A second common option is holding Shift to run. Tutorials and forum discussions about walk/run systems often use a sprint config or speed- switching logic tied to input, rather than a button only.

Example idea:

  • Hold Shift = run.
  • Release Shift = walk.
  • Walk speed = 16.
  • Run speed = 24 or 28.

About custom animations

If you mean the animation changing between walk and run, you need custom walk/run animations plus a script that swaps them based on speed or input. Roblox tutorials for R6 show using the Animation Editor, publishing the animation, then inserting the animation IDs into the character’s animate setup or a run config.

Typical workflow

  • Set your avatar to R6 if the animation pack is built for R6.
  • Create walk and run animations in the Animation Editor.
  • Publish both animations.
  • Paste the animation IDs into your script or animate configuration.
  • Test in Play mode.

Common gotchas

  • If the speed changes but the animation does not, the issue is usually the animation setup, not the speed itself.
  • Some tutorials use R6 only because certain custom run/walk animation setups are built for that rig.
  • If you are making a GUI button, use a LocalScript , not a regular Script, so the player can change their own movement speed.

Short version

If you just want the easiest answer: change Humanoid.WalkSpeed to make run/walk work. If you want the character to look like it is running, add custom animations too.

Would you like a Shift-to-run script or a button-based run/walk GUI?