Getting GameSettings Default WalkSpeed?

I know that Roblox’ default walk speed is 16. Say I edited my game’s default WalkSpeed value to 10 in Roblox Studio > Game Settings > World > Walk > Walk Speed.

In a script, I make the player’s walk speed to 0 (stop). After x seconds, instead of setting up the player’s WalkSpeed manually, I intend to set their WalkSpeed to the game’s default WalkSpeed when they first entered.

I could easily create one and set it manually. However, doing so would be confusing if I were to change the value via RobloxStudio>GameSettings because my manual variable would overwrite it. I just wanted to know if it is possible to just grab that default value from Game Settings, so whenever I need to change the game’s default, I could easily do so from the Game settings to avoid confusion.

1 Like

You should be able to get these settings from the StarterPlayer service. I just tested, and changing the settings also changed the properties in StarterPlayer.

image

7 Likes