-
What do you want to achieve?
To TP all the players ingame -
What is the issue?
07:28:37.915 ServerScriptService.gameScript:67: attempt to compare number and table - Server - gameScript:67
07:28:37.915 Stack Begin - Studio
07:28:37.915 Script 'ServerScriptService.gameScript', Line 67 - Studio - gameScript:67
07:28:37.915 Stack End - Studio
-
What solutions have you tried so far?
I tried other scripts and searching for solutions in the devforum
for i = 1, #players do
local ingameplayers = workspace.Ingame:GetChildren()
local players = game.Players:GetChildren()
repeat
players[i].Character.HumanoidRootPart.Position = map.TP.Position
players[i].Character.Parent = workspace.Ingame
wait()
until ingameplayers > 1
end