ExecuteFirst: ReplicatedFirst for the server

Hello. I’d like to propose a feature that would make loading server content in places from the cloud much more reliable: ExecuteFirst. Much like ReplicatedFirst, it would be the first thing to be loaded, but it would serve a different purpose, which is to execute desired code until all the contained scripts are finished. (Even waiting for yields)

Let’s say that we have two places that use the same map uploaded to the marketplace as a model. We can easily insert it using the InsertService, sure, but if the map is big enough then chances are that players will fully load before it’s completely inserted. This is where ExecuteFirst would be handy. With this feature, all things that need to be done first on the server can be done before the server starts replicating the game to player clients.

It may not be possible to implement this as a service due to the way the engine works, and if this is the case, then maybe it could be added as a callback or bind method on the DataModel much like :BindToClose().

I hope you all like my first feature request and maybe even take it into consideration. Thanks for reading!

15 Likes