|
| 27 Mar 2015 03:00 PM |
I almost figured out how I can make 8 people teleport to different places (each different island for my new game)
I noticed I might have to make a table and let the table choose who to send where but how do I make the teleporting thing?
playersTP = {1, 2, 3, 4, 5, 6, 7, 8}
how do i make the script randomly choose a number in this table and teleport them to a certin block? |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2015 03:01 PM |
| local random_pick = playersTP[math.random(1,#playersTP)] |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2015 03:02 PM |
| ok now how do I script the blocks position in? |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2015 03:02 PM |
tps = game[teleporter locations]:GetChildren() for _,player in next, game.Players:GetChildren() do player.Character.Torso.CFrame = CFrame.new(tps[math.random(#tps)].CFrame + Vector3.new(0,10,0)) |
|
|
| Report Abuse |
|
|