|
| 26 Dec 2014 08:22 AM |
i've got a line of code that teleports players to a certain area here it is
players[i].Character:MoveTo(Vector3.new(-215.5, 69.6, 21.7)) the co-ordinates are the position if the brick
the thing is, it teleports the players to the middle of the brick. how do i do it so they are evenly spread out across it? |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 26 Dec 2014 08:27 AM |
I'll assume that the players[i].Character:MoveTo(Vector3.new(-215.5, 69.6, 21.7)) line is in a loop.
What you have to do is put them at Pos+(Spread/(i/#players)) |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2014 08:48 AM |
thanks for the help. yeah it is in a loop |
|
|
| Report Abuse |
|
|
ohno1112
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 833 |
|
|
| 26 Dec 2014 09:20 AM |
| players[i].Character:MoveTo(Vector3.new(-215.5, 69.6, 21.7) + Vector3.new(0,5*i,0)) |
|
|
| Report Abuse |
|
|
| |
|