hi, i have this script;
local target1 = CFrame.new(-167, 189.156, 0)
local target2 = CFrame.new(183, 189.156, 0)
local target3 = CFrame.new(8, 189.156, 175)
local target4 = CFrame.new(8, 189.156, -175)
local targets = {target1, target2, target3, target4}
local target = targets[math.random(#targets)]
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
player.Character.HumanoidRootPart.CFrame = target
end
end
designed to each of the players in the server to a random location. however it teleports everyone to one location, rather than each player to a random location. help?

2 comments
Move line 7 into the for loop.
You should mark an answer as correct or state why the answer isn't correct.