Teleports is not a valid member of Workspace "Workspace"

I want that my character to be teleported to the part inserted in the model called “Teleports”

It appears a error wich it says that: Teleports is not a valid member of Workspace “Workspace”

I tried to change workspace.Teleports:FindFirstChild(map.Name) to workspace:WaitForChild(“Teleports”). That doesn’t work.

Here’s the problem from the script:

for i = 1,#players do
		local spawnLocation = workspace.Teleports:FindFirstChild(map.Name)  -- There's the error
		players[i].Character:MoveTo(workspace.Teleports:FindFirstChild(map.Name).Position)
		players[i].Character.Parent = workspace.Ingame
		
	end

Full Code:

local status = game.ReplicatedStorage.Status
local maps = game.ReplicatedStorage.Maps:GetChildren()

while true do
	for i = 1,10 do
		status.Value = "Intermission: "..10-i
		wait(1)
	end
	
	local rand = math.random(1, #maps)
	
	local map = maps[rand]:Clone()
	map.Parent = workspace
	
	status.Value = "We'll be playing "..map.Name
	local players = game.Players:GetChildren()
	wait(4)
	for i = 1,#players do
		local spawnLocation = workspace.Teleports:FindFirstChild(map.Name)
		players[i].Character:MoveTo(workspace.Teleports:FindFirstChild(map.Name).Position)
		players[i].Character.Parent = workspace.Ingame
		
	end
	
	local roundLenght = 120
	local CanWin = true
	
	if map:FindFirstChild("Obby") then
		map.EndPart.Touched:Connect(function(hit)
			if hit.Parent:FindFirstChild("Humanoid") then
				CanWin = false
				status.Value = hit.Parent.Name.." has won!"
			end
		end)
	end
	
	repeat
		roundLenght = roundLenght -1
		status.Value = "Time Left: "..roundLenght
		wait(1)
	until roundLenght == 0 or CanWin == false or #workspace.Ingame:GetChildren() == 0
	
	wait(3)
	for i = 1,#players do
		players[i].Character:MoveTo(workspace:FindFirstChild("SpawnLocation").Position)
	end
	
map:Destroy()
end

does the “map” is Model? or Part?

if its part then here fixed Way:

for i = 1,#players do
local spawnLocation = workspace.Teleports:FindFirstChild(map.Position)
players[i].Character:MoveTo(Vector3.New(spawnLocation))
players[i].Character.Parent = workspace.Ingame

end

It’s a model. It’s inserted in ReplicatedStoarge. But i will still try ur method.

you need have PrimaryPart for that and then you can set the PrimaryPart Position As Teleport

I mean, map is a variable. Check the whole script please.

Here’s my explorer:

T = Teleporter

(When i test the game out,The “Teleports” model is just gone from the workspace)

Nevermind, i fixed it. Thank you for ur time!