Easy Written By Simpletton

Changing the WalkSpeed Created on: 09-12-2019

How to change the player's walk speed

Introduction

WalkSpeed is a property that describes how quickly a Humanoid is able to walk, in studs per second. This property defaults to 16, so a Roblox Player.Character can move approximately 16 studs in any direction each second by default.

I will provide two examples for you to understand on how to do this.

Demonstration without a Script:

1) Go to StarterPlayer in the explorer. (view tab->explorer)

2) In the properties, (view tab->properties) look for the WalkSpeed property. It should have a default value of 16.

3) You can edit this number to be any number you want.

Demonstration with a script:

PlayedAdded and CharacterAdded are events.

PlayedAdded runs when the player joins the game CharacterAdded runs when the player's character loads into game.

Inside of character added, we change the players walkspeed. this means whenever the player's character loads, their walkspeed will be changed to 'newWalkspeed' .

local newWalkspeed = 10
 -- You can change this value to any number you want

    game.Players.PlayedAdded:Connect(function(player)
     player.CharacterAdded:Connect(function(character)
	      character:WaitForChild("Humanoid").WalkSpeed = newWalkspeed
	   end)
	end)

Easy Written By Simpletton

See Simpletton's profile on Roblox

Discussion