Hi I'm having a problem so I made a workspace model named "Teleports" and I made this minigame teleport script but it's not working here's the script:
local players = game.Players:GetChildren()
for i = 1,#players do
if players[i].Character ~= nil then
local spawnLocation = math.random(1,#workspace.Teleports:GetChildren())
players[i].Character:MoveTo(workspace.Teleports:GetChildren()[spawnLocation].Position)
end
end
and in the output the it's saying Teleports can't be dectected may you guys find out why?

2 comments
so the script does work
yes