Where to store values such as walkspeed values

Hello.
I have recently heard that exploiters can tamper with local scripts. I have a sprinting script, and I do not want them to wield the ability to configure their walkspeed to higher numbers, so I want to do something like this in that local script.

local SprintingSpeed = NumberValue.Value

I just do not know if this will work and prevent the exploiters from changing their walkspeed through the sprinting scripts. I also do not know where I would store this value. Would I store it in serverstorage? workspace?
Thanks.

You can store it in ReplicatedStorage.

Is there a difference/benefit when storing it in ReplicatedStorage instead of ServerStorage?

ReplicatedStorage can be accessed by both the client and the server while ServerStorage can only be directly accessed by the server.

1 Like

ReplicatedStorage since you’re using a sprint script, which is most likely a local one.

1 Like

I see. Thank you! Since this was the most recent, I will mark this one as the solution.

1 Like

I see. So if it’s a local script, you can grab things from ReplicatedStorage but not ServerStorage. Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.