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

how do i change walking speed?

Asked by
lyxture 27
9 years ago

i am making a basketball game and i need to change the speed. i want it that everyone's walking speed changes.

0
I am very sorry lyxture 27 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

We can use a in pairsloop to loop through the Players to get the players that are currently in the server then we can use that information to change the WalkSpeed of the Player's Character.

for _,v in pairs(game.Players:GetChildren()) do--Getting the Player
    game.Workspace:FindFirstChild(v.Name).Humanoid.WalkSpeed = 50--Searching for the Player's Name in Workspace then it Changes their WalkSpeed to 50.
end

~ UserOnly16Charcters, Hoped I helped you to answer your question! If you have any further question, don't hesitate to comment below!!

0
what kind of script is this and where do i put this and btw thank you lyxture 27 — 9y
Ad

Answer this question