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
player = game.Players.PreyStar.FindFirstChild("Humanoid")


if player then
Walkspeed = 2922
end

2 answers

Log in to vote
1
Answered by 9 years ago
player = game.Players.PreyStar
while player.Character ~= nil do wait() end
character = player.Character
humanoid = chracter:FindFirstChild("Humanoid")

if character then
humanoid.WalkSpeed = 2922
end
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.

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

Hope it works

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

Answer this question