|
| 09 May 2015 05:15 PM |
Hey guys,
I made a game with very big maps (2-3k parts) and I made a script which copies the map from ServerStorage and puts it into workspace. I try it offline and it loads in like 2 seconds. I try it on a 2 player server and the server loads the map without the client seeing it. By the time the map loads on the client the script has already progressed to further code.
Any way to load the map more efficiently? Or at least a way to make the script wait until the map finishes loading on the client?
Any help will be appriciated |
|
|
| Report Abuse |
|
|
|
| 09 May 2015 05:17 PM |
b1
-This sentence is a lie- |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 09 May 2015 05:17 PM |
Iterate through the models and clone each part instead of all at once.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 09 May 2015 05:17 PM |
b2
-This sentence is a lie- |
|
|
| Report Abuse |
|
|
|
| 09 May 2015 05:19 PM |
Do I need to put a wait() between all the bricks?
If I do it would take much too long for the map to actually load.
And if I don't there wouldn't be any difference (Unless I'm mistaken)
|
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 09 May 2015 05:20 PM |
Wait every 250 iterations.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 09 May 2015 05:22 PM |
Mkay I'm going to try that thanks
|
|
|
| Report Abuse |
|
|