Command Bar Changing LocalPlayer speed

I don’t know anything to nothing about scripting but I tried making a small script but it is not working,

I am pasting this script into the command bar while in studio. I wanna be able to change my speed to 50, but it’s not working. What do I change to get it to work?
Workspace.Parent.Players.LocalPlayer.Humanoid.WalkSpeed = 50

1 Like

You can just do game.Players instead.

You also need to index the Humanoid through the Character Property of LocalPlayer
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50

1 Like

Alright thank you. Is this anyway to do += 50 instead of = 50?

game.Players.LocalPlayer.Character.Humanoid.WalkSpeed =+ 16

Yes,
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed += 16

1 Like

Yup, it works, thank you so much for helping. :slight_smile:

1 Like