Help with teleporting players on a team to spawn

for _, Player in pairs(blue:GetPlayers()) do
							if Player:FindFirstChild("Character") then
								print("Teleporting players back")
								Player.Chracter.IsPlayer.Value = false
								Player.Character.HumanoidRootPart.CFrame = game.Workspace.SpawnLocation.CFrame * CFrame.new(0,1,0)
								delay(.2, function()
									gametime = 10
									Matchmaking = false
								end)
								
							end
						end

Why isn’t this script working it supposed to teleport all the players to spawn that on the team once the number of countdown reaches 1. The thing isn’t printing or working. Anyone know why?

Try this

for _, Player in pairs(blue:GetPlayers()) do
							if Player.Character then
								print("Teleporting players back")
								Player.Character.IsPlayer.Value = false
								Player.Character.HumanoidRootPart.CFrame = game.Workspace.SpawnLocation.CFrame + Vector.new(0,3,0)
								task.wait(0.2)
									gametime = 10
									Matchmaking = false
								end)
								
							end
						end
1 Like

you wrote Chracter instead of Character once

1 Like

Goos looks lil dude it worked.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.