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
9 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.

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

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 — 9y

Answer this question