error name : 12:57:27.823 - Teleports is not a valid member of Workspace

script: local status = game.ReplicatedStorage.Status

while true do for i = 1,10 do status.Value = "Intermission "..10-i wait(1) end

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

end

Moldle name : Teleports

2 comments

0

does 'teleports' exist? if so is it in workspace? you coud have placed it in the wrong parent or named it incorrectly

0

yes it does and no i diddnt