Here's the code

local s = script.Stat
t = 0
while true do
	t = 16
	repeat
		t = t-1
		s.Value = "Game starts in "..t
		wait(1)
	until t == 0
	s.Value = "Get Ready!"
	
	wait(2)
	
	local plrs = game.Players:GetChildren()
	for i = 1, #plrs do
		local num = math.random(1,10)
		plrs[i].Character.Head.CFrame = CFrame.new(workspace.Teleport["Part"..num].Position)
	end
	t = 6
	repeat
		t = t-1
		s.Value = t.." Seconds Left"
		wait(1)
	until t == 0
	for i = 1, #plrs do
		local num = math.random(1,8)
		plrs[i].Character.Head.CFrame = CFrame.new(workspace.LobbyRespawns["Part"..num].Position)
	end
	end

2 comments

0

WaitForChild()?

1

I think it was because it wasnt anchored but thanks anyways