Changing the Player's WalkSpeed in LocalScript vs ServerScript

Should I change the Player’s WalkSpeed in LocalScript or ServerScript?
And if the answer is to change in the ServerScript, is using a RemoteEvent the way to do it?

1 Like

You can change it on either client or server as the client has control of it as well, I believe doing it via the server is the best way.

1 Like

It doesn’t matter, but there are a few things you should know before deciding:

  1. The walkspeed property does not replicate to the server once changed on the client, only the position is replicated.
  2. Changing the walkspeed on the server will let the server have control of your walkspeed (knowing your walkspeed) if it’s ever needed, most of the times you don’t need to keep track of it in my opinion.

If you’re going to make custom commands, then I would stick to the second one as there won’t be any reason to have another script to just change their walkspeed (on the client-side).

6 Likes

I see, thanks for the quick reply!

Thank you, I’ll keep that in mind.