Cykon
|
  |
| Joined: 05 Jan 2014 |
| Total Posts: 272 |
|
|
| 18 Jun 2014 12:43 AM |
| How would i do that? I want it to spawn a random map after every round instead of a selected order. what would i type? |
|
|
| Report Abuse |
|
|
Cykon
|
  |
| Joined: 05 Jan 2014 |
| Total Posts: 272 |
|
|
| 18 Jun 2014 12:50 AM |
help please
i have 4 maps named Map1 Map2 Map3 Map4 |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2014 12:53 AM |
| ANYONE! WHY IS THERE NO ANSWER! |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2014 12:53 AM |
Get a table of the maps and then have it choose a random one based off the number of maps. You can do this by making something similar to this
Maps = game.Lighting.Maps:GetChildren() --Make a table(list) of the maps Nmaps = #Maps --Number of maps Rmap = Maps[math.random(1,Nmaps)] --Random number from 1 to the number of maps Rmap.Parent = game.Workspace Rmap:MoveTo(Pos) --Pos is obviously a Vector3 of where you want the map to be. |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2014 12:55 AM |
Correction. This line
Rmap = Maps[math.random(1,Nmaps)]
Should be
Rmap = Maps[math.random(1,Nmaps)]:clone() |
|
|
| Report Abuse |
|
|