Lucidic
|
  |
| Joined: 16 Dec 2014 |
| Total Posts: 429 |
|
|
| 15 Feb 2015 08:13 AM |
Would it be more appropriate to place the maps of a game into...
ServerStorage
or
Lighting
??
Thanks. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 15 Feb 2015 08:44 AM |
Place them all into ServerStorage, Predecide the map for next round and move it to ReplicatedStorage Move from ReplicatedStorage into Workspace
Saves by preloading data to the client and stuff |
|
|
| Report Abuse |
|
|
Lucidic
|
  |
| Joined: 16 Dec 2014 |
| Total Posts: 429 |
|
|
| 15 Feb 2015 09:21 AM |
So something like
gameChosen = math.random(1,#minigames) cloneMap = gameChosen:Clone() cloneMap.Parent = "ReplicatedStorage"
if previousMap = nil then
cloneMap.Parent = "Workspace"
end
This is not the full script, but just a gist. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 15 Feb 2015 09:33 AM |
local currentMap = someMap; local nextMap = someMap; currentMap.Parent = workspace; nextMap.Parent = ServerStorage; while roundTimer do currentMap.Parent = ServerStorage; currentMap = nextMap; currentMap.Parent = workspace; nextMap = someMap; end
Sort of like that. |
|
|
| Report Abuse |
|
|
Lucidic
|
  |
| Joined: 16 Dec 2014 |
| Total Posts: 429 |
|
|
| 15 Feb 2015 09:43 AM |
I've got something similar in my code.
Thanks! |
|
|
| Report Abuse |
|
|