Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Making all players frozen?

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

2 comments

0

It looks right. I'm not extremely intelligent in this field of scripting.

0

Well it keeps giving me an error such as "Walkspeed is not a valid member of Humanoid"

1 answer

✓ Accepted answer

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.

1 comment

0

Oh wow I didn't even notice that. Thanks! And yeah, that's not all the code.

This discussion is preserved as it was. New answers, comments, and votes are closed.