How would I make the player's speed bigger when they walk?

How would I make the player’s speed increase when they walk?

I have looked for solutions, but none worked.

This is my script so far:

while true do
	wait (0)
	if game.Players.LocalPlayer.Character.Humanoid.MoveDirection.Magnitude > 0 then
		game.Players.LocalPlayer.Character.Humanoid.Speed = game.Players.LocalPlayer.Character.Humanoid.Speed + 3
	end
end

It is located in Starter Character Scripts.

Try change Speed into WalkSpeed.

1 Like

The script has worked! :slight_smile:
Thanks for helping.

1 Like