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.
1 | for 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) |
5 | 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