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

For Loop Not Working???

Asked by
Scriptecx 124
10 years ago

Here is the part of the script for my game I am making.

It is meant to give the players an In-game value, and then TP the players to the map.

1for i,v in pairs (game.Players:GetChildren()) do
2    local InGame = Instance.new ("BoolValue",v.Character)
3    InGame = true
4    v.Character:MoveTo(spawns[i].Position)
5end

Here is the error as well.

09:35:08.755 - 1 is not a valid member of Model 09:35:08.756 - Script 'ServerScriptService.Script', Line 13 09:35:08.757 - Stack End

0
Can you actually post the whole script? woodengop 1134 — 10y

Answer this question