No error Everything else use to work but now only the freeze part does not work, Since I added it in. btw I did Call the Function.

function teleport()
	local children =  game.Players:GetChildren()
	  for _,v in next, game.Players:GetPlayers() do
	v.PlayerGui.GUI.TextLabel.Text = "Teleporting Players!"
wait(1)
local target = CFrame.new(-35, 16.9, 17.4) 
for i, player in ipairs(game.Players:GetChildren()) do
    player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
for i = 1, #children do
    local all = children[i]:GetChildren()
for i=1,#all do
		if all[i]:IsA("Part") then
			all[i].Anchored = true
end	   
end
end
end
	end
	end

1 comment