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

Walkspeed script help?

Asked by
FiredDusk 1466 Moderation Voter
9 years ago
1player = game.Players.PreyStar.FindFirstChild("Humanoid")
2 
3 
4if player then
5Walkspeed = 2922
6end

2 answers

Log in to vote
1
Answered by 9 years ago
1player = game.Players.PreyStar
2while player.Character ~= nil do wait() end
3character = player.Character
4humanoid = chracter:FindFirstChild("Humanoid")
5 
6if character then
7humanoid.WalkSpeed = 2922
8end
0
I think you meant to say "if humanoid then", not "if character then". Further, you misspelled "character" on line 4. chess123mate 5873 — 9y
0
Sorry, my internet was slow. GullibleChapV2 155 — 9y
Ad
Log in to vote
0
Answered by
Potlon 35
9 years ago

Try this

The walkspeed is not defined.

1player = game.Players.PreyStar.FindFirstChild("Humanoid")
2    if player then
3    player.WalkSpeed = 2922
4end

Hope it works

0
You need a colon between PreyStar and FindFirstChild chess123mate 5873 — 9y
0
eeeeeeeeeeeeeeeeeeeeeeeeeeeee Potlon 35 — 9y

Answer this question