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

Making all players frozen?

Asked by 8 years ago

So I am making a game with rounds and I and trying to make it where the players can't get ahead before the round actually starts. So I am trying to make it to where they can't move until the countdown has finished.

This is pretty much all I have so far but it isn't working and I'm sure it's far from correct and I'm not sure where to look.

for _, player in pairs(game.Players:GetPlayers()) do
    if player.Character then
        player.Character.Humanoid.Walkspeed = 0
    end
end
0
It looks right. I'm not extremely intelligent in this field of scripting. Async_io 908 — 8y
0
Well it keeps giving me an error such as "Walkspeed is not a valid member of Humanoid" Jord_guitar 50 — 8y

1 answer

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
8 years ago

Walkspeed needs to be WalkSpeed, with the capital S.


Also I'm assuming that this isn't all the code, because if it is it will only run when the game starts.

0
Oh wow I didn't even notice that. Thanks! And yeah, that's not all the code. Jord_guitar 50 — 8y
Ad

Answer this question