|
| 21 May 2016 04:39 PM |
how would i clone something into workspace randomly from a table?
local maps = {"map1", "map2"} local randommap = math.random(1,#maps)
|
|
|
| Report Abuse |
|
|
Erediin
|
  |
| Joined: 13 Mar 2016 |
| Total Posts: 756 |
|
|
| 21 May 2016 04:59 PM |
| If randomap= map11 then clone it |
|
|
| Report Abuse |
|
|
|
| 21 May 2016 04:59 PM |
its local maps = {"map1", "map2"} local randommap = maps[math.random(1,#maps)] by the way... /\ |
|
|
| Report Abuse |
|
|
|
| 21 May 2016 05:01 PM |
local maps = {"map1", "map2"} local randommap = math.random(1,#maps)
local Map = game.ServerStorage:FindFirstChild(maps[randommap]) or nil if Map then Map:Clone().Parent = game.Workspace end |
|
|
| Report Abuse |
|
|
| |
|