Script Loading and Execution Order#
This is an incomplete list of the loading and execution order of scripts and the respective objects for a Custom Game mode.
Load Character.luaLoad Unit.luaLoad Tool.luaLoad Game.luaCall Game:server_onCreate()Load World.luaCall Game:client_onCreate()Load Player.luaCall Game:server_onPlayerJoined()Call World:server_onCreate()Call World:client_onCreate()Call Player:server_onCreate()Call Player:client_onCreate()Call Game:client_onLoadingScreenLifted()