My round system doesnt teleport the seeker but teleports the hider?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    i want it to transport both hiders and seekers, thats all i ask ive had problems with this for a long time.

  2. What is the issue? Include screenshots / videos if possible!
    I have two functions one that teleports the hider to the chosenmap (current map) and one that teleports the seeker to the map the seeker one happens after and yet it doesnt work. it only works for the hider and not for the seeker


  3. What solutions have you tried so far? Did you look for solutions on the Creator Hub?
    i have tried to look for solutions but couldnt find any ive also tried to instead of using teams to use folders but that didnt work either.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local players = game.Players:GetPlayers()
local Lobby = game.Workspace:WaitForChild("Lobby")
local Round = game.Workspace:WaitForChild("Round")
local TEVENT = game:GetService("ReplicatedStorage"):WaitForChild("Timer")
local TEVENT2 = game:GetService("ReplicatedStorage"):WaitForChild("Timer2")
local hasran = false
local Maps = {game.ServerStorage["Classic Playground"],game.ServerStorage.SuburbanMap}
local seekers = game:GetService("Teams").Seeker
local TEVENT3 = game:GetService("ReplicatedStorage"):WaitForChild("T3")
local hiders = game:GetService("Teams").Hiders
local TEVENT4 = game:GetService("ReplicatedStorage"):WaitForChild("T4")
local Seekerwins = game:GetService("ReplicatedStorage"):WaitForChild("SeekerWins")
local Hiderwins = game:GetService("ReplicatedStorage"):WaitForChild("HiderWins")
local RoundOngoing = false
local TimerRan = false
local LobbySek = Lobby:FindFirstChild("ChosenSeeker")
local Lteam = game:GetService("Teams").Lobby


game.Players.PlayerAdded:Connect(function(player)
	local character = player.Character or player.CharacterAdded:Wait()
	player.Character.Parent = Lobby
	local function Timer()
		if TimerRan == true then return end
		TimerRan = true
		print("Line 23/STARTED")
		local players1 =  game:GetService("Players"):GetPlayers()
		if not hasran or RoundOngoing and #players1 >= 2 then
			task.wait(8)
			hasran = true
			local function startTimer(initialTime)
				for i = initialTime, 0, -1 do
					TEVENT:FireAllClients(i)
					task.wait(1)
				end
			end
			startTimer(20)
			print("Line 36/Ended")
			local PickedMap = Maps[math.random(1,#Maps)]
			local PlacedMap = PickedMap:Clone()
			print("Choosing Map/Line 39")
			local function MapChoosing()
				print("Map chosen/Line 41")
				PlacedMap.Parent = workspace
			end
			MapChoosing()
			print("Starting Timer 2/Line 45")
			local function startTimer2(initialTime)
				for i = initialTime, 0, -1 do
					TEVENT2:FireAllClients(i,PickedMap.Name)
					task.wait(1)
				end
			end
			print("Starting Timer 2/Line 52")
			startTimer2(15)
			print("Picking Seeker/ Line 54")
			local function SeekerCheck()
				local PlayerTable = game.Players:GetPlayers()
				local pickedplayer = PlayerTable[math.random(1,#PlayerTable)]
				if pickedplayer then
					pickedplayer.Character.Parent = LobbySek
					pickedplayer.Team = seekers
				end
				print(pickedplayer)
			end
			print("Running seeker check/ Line 64")
			SeekerCheck()
			print("Transporting Hiders/ Line 66")
			local function TransportHiders()
				if player.Team == Lteam then
					print("Inside Function HIDER/ Line 69")
					player.Team = hiders
					player.Character.Parent = Round.Hiders
					local SpawnPoints = PlacedMap:FindFirstChild("SpawnPoints").Spawnpoint
					character:PivotTo(SpawnPoints.CFrame)
					print("tpH")
		
				end
			end
			task.wait(3)
			print("Transporting../ Line 78")
			TransportHiders()
			print("Done transporting/ Line 80")
			local function startTimer3(initialTime)
				for i = initialTime, 0, -1 do
					TEVENT3:FireAllClients(i)
					task.wait(1)
				end
			end
			print("Starting Timer 3/ Line 87")
			startTimer3(20)
			print("Transporting/ Line 89")
			local function TransportSeeker()
				if player.Team == seekers then
					print("Inside Function transporting/ Line 90")
					local SeekerSpawns = PlacedMap:FindFirstChild("SpawnPoints").SeekerSpawn
					player.Character:PivotTo(SeekerSpawns.CFrame)
					print("tpS")
				end
			end
			print("About to run Transportseeker/ Line 98")
			task.wait(3)
			TransportSeeker()
			print("Done transporting/ Line 100")
			local function startTimer4(initialTime)
				for i = initialTime, 0, -1 do
					TEVENT4:FireAllClients(i)
					task.wait(1)
				end
			end
			startTimer4(300)
			print("Ended!/Line 106")
		else
			print("NOT ENOUGH PLAYERS")
		end
	end
	Timer()
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

check if SeekerSpawn is spelt correctly; the capitalization is different between this line and the line used to transport hiders as seen below

The if statement nesting is giving me nightmares

So first thing, i noticed that are you using PlayerAdded (only signals when player joins), seperate (with making these local functions outside of PlayerAdded) and change logic round to while task.wait() end or connections

Script’s code relays on Each Added Player (not on getting players using through for i,v in Game:GetService("Players"):GetPlayers() do)…
Which could be issue
Which means could make double run code.

I recommend doing what i said[quote=“Microlosofto, post:4, topic:4036693, full:true, username:Microlosofto”]
So first thing, i noticed that are you using PlayerAdded (only signals when player joins), seperate (with making these local functions outside of PlayerAdded) and change logic round to while task.wait() end or connections

Script’s code relays on Each Added Player (not on getting players using through for i,v in Game:GetService("Players"):GetPlayers() do)…
Which means could make double run code.

I recommend doing what i said

Or maybe incorrect set of Instance’s name