of     1   

excellentAnarchy
#141754225Sunday, July 27, 2014 8:00 PM GMT

game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if player.Character then while true do wait(10) for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(381.99, 309.21, 240.86) wait(10) v.Character.Torso.CFrame = CFrame.new(148.958, 199.493, 4.484) end end end end) end) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ How would I edit the above (working) to teleport each player to a different out of 3 or 4 different positions. Let's say, I have 4 players in the game, I also have 8 different positions, but I want to teleport each player randomly to a random position out of all 8.
KEVEKEV77
#141754470Sunday, July 27, 2014 8:02 PM GMT

Positions = {allthepositionshere} game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) ava = Positions if player.Character then while true do wait(10) for i, v in pairs(game.Players:GetChildren()) do local b = math.random(1, #ava) v.Character.Torso.CFrame = ava[b]; table.remove(ava, b); wait(10) v.Character.Torso.CFrame = CFrame.new(148.958, 199.493, 4.484) end end end end) end)
TickerOfTime
#141754611Sunday, July 27, 2014 8:04 PM GMT

Tables with CFrame values and math.random to select the values.
excellentAnarchy
#141756117Sunday, July 27, 2014 8:20 PM GMT

21:20:04.141 - Workspace.Script:13: bad argument #3 to 'CFrame' (CFrame expected, got number)
excellentAnarchy
#141762370Sunday, July 27, 2014 9:24 PM GMT

bump
excellentAnarchy
#141763859Sunday, July 27, 2014 9:41 PM GMT

bump
KEVEKEV77
#141782879Monday, July 28, 2014 12:53 AM GMT

v.Character.Torso.Position = Vector3.new(148.958, 199.493, 4.484);
128GB
#141787131Monday, July 28, 2014 1:32 AM GMT

'v.Character.Torso.Position = Vector3.new(148.958, 199.493, 4.484);' That would kill them, use CFrame or MoveTo
KEVEKEV77
#142304228Friday, August 01, 2014 8:28 PM GMT

post the code your using and I will fix it.

    of     1