target = game.workspace:WaitForChild('Teleport'):GetChildren()
for i, player in pairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
local torso = player.Character:WaitForChild('Torso')
torso.CFrame = CFrame.new(target.Position + Vector3.new(0,2,0))
end
end
The bug is in line 05.

1 comment
More information.