thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 17 Aug 2013 06:23 PM |
| Would you use math.random to spawn someone randomly on the baseplate? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Aug 2013 06:28 PM |
| Or you can make a lot of SpawnLocations and just put them "in" the baseplate or make them invisible |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 17 Aug 2013 06:30 PM |
| @cn, no cause i'm making a game that every tie you die you spawn at a place, but when another round starts I need all of the players to spawn somewher's random on the baseplate. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
|
| 17 Aug 2013 06:32 PM |
function GetRandomSpawn() local spawnsModel = Workspace.Spawns local spawns = spawnsModel:GetChildren() local randomSpawn = spawns[math.random(1, #spawns)] return randomSpawn end |
|
|
| Report Abuse |
|
|