Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I change the Walkspeed of the Player? [closed]

Asked by 9 years ago

I can't figure out how to make a Player walk slower or faster than normal. I don't think I need a script I just can't figure out if I need to change something or what?

Locked by JesseSong

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
3
Answered by
Redbullusa 1580 Moderation Voter
9 years ago

The walkspeed property can be adjusted in the "Humanoid" object. The humanoid is in every player.

If you're in a server, then your walkspeed should be here:

game < Workspace < FastSnail5 < Humanoid < Walkspeed < Value

game < Workspace < [Model] < [Object] < [Property] < [Value]

EDIT: You can manipulate your character's walkspeed in many ways. It can be an outside source, a tool, or a gui.

Example of WalkSpeed Change Via External Source

debounce = true                         -- Debounce variable (so your function doesn't repeat itself)
function YourWalkspeedIsChanged(hit)    -- Function, with "hit" being the argument (or the object that touches your part)
    if hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true then -- Seeing if there's humanoid
        debounce = false                    -- "Locks" function, so it won't repeat
        hit.Parent.Humanoid.WalkSpeed = 5   -- Changes the walkspeed
        wait(5)
        hit.Parent.Humanoid.WalkSpeed = 16  -- Reverts to default speed
        debounce = true                 -- "Unlocks" function, so the function can run again
    end
end

script.Parent.Touched:connect(YourWalkspeedIsChanged)   -- Connection line, to run the function

Example of WalkSpeed Change Via GUI (TextButton)

game > Players > LocalPlayer > PlayerGui > ScreenGui > TextButton/Script

function WalkSpeed()
    game.Players.LocalPlayer.Character.Humanoid.Walkspeed = 25
end

script.Parent.TextButton.MouseButton1Click:connect(WalkSpeed)
0
Yeah i understand the concept of humanoids and properties and stuff i just didnt know how to go about writing a script that would allow me to do wut i wanted to do FastSnail5 8 — 9y
0
I'm just a beginnner in scripting FastSnail5 8 — 9y
0
All right, so I've edited my post so you could see examples of how you could change your walkspeed. Redbullusa 1580 — 9y
0
I understand this.. Im trying to make it so each time you drink you get a little walkspeed. Not each time you drink it sets it to 25. appleprogamer_59 29 — 5y
0
Make sure when you change the walk speed that it is "WalkSpeed" and not "walkspeed" MexheCo 46 — 5y
Ad