Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to get Game Default WalkSpeed?

I know that Roblox' default walk speed is 16. Say I edited my game's default WalkSpeed value to 15 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.

3 comments

0

Is there a reason why you can't just make a variable called defaultWalkSpeed and set it to 16? That way if you ever feel the need to do so you can customize the default walk speed.

0

humanoid.WalkSpeed = game.StarterCharacter.WalkSpeed ? Something like that should work although I'm not exactly sure what you are asking for in this question.

0

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 answer

Put a local script in starter character scripts (Located in starter player) then just do "script.Parent.Humanoid.WalkSpeed = 20", 0 is the normal walkspeed

also if that doesn't work then you might wanna do "Script.Parent = game.Players.LocalPlayer" or something like that.

This discussion is preserved as it was. New answers, comments, and votes are closed.