Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I make players not teleport on top of each other?

Asked by 9 years ago
target = CFrame.new(0, 50, 0) --could be near a brick or in a new area
for i, player in ipairs(game.Players:GetChildren()) do
player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
--add an offset of 5 for each character
end

Whenever it teleports them, they teleport on top of eachother. How do I make them teleport on different positions?

1 answer

Log in to vote
-1
Answered by 9 years ago

Are you an alt or something I have seen multiple posts saying the exactly same thing and I am getting tired of answering this simple thing, please stop this will only get you bad reputation and no answers at all. Heres the code

Wait(30)
target = CFrame.new(0, 50, 0) --could be near a brick or in a new area
for i, player in ipairs(game.Players:GetChildren()) do
player.Character.Torso.CFrame = target + Vector3.new(0, 0, i * 15)
--add an offset of 5 for each character
end

tell me if it does or doesn´t work.

0
Bio, I'm Sarcasticly. FamousDoge 0 — 9y
0
I am glad to help people but this makes me mad please don´t repeat the question with alts it makes people angry I am already writing the code. biocommand 30 — 9y
Ad

Answer this question