Customising the interface
When required on the server, Cmdr will automatically create and insert into StarterGui its console interface (called Window), unless a ScreenGui named Cmdr
already exists in StarterGui.
When required on the client, Cmdr will check to see if PlayerGui
includes a ScreenGui named Cmdr
. If not, it'll create the Window and insert it into PlayerGui.
The Cmdr GUI will be inserted into StarterGui if it doesn't already exist. You can customize the GUI to your liking (changing colors, etc.) if you play the game, copy the GUI, stop the game, and then paste it in to StarterGui. Of course, this is completely optional.
You can also customise the Cmdr interface through PlayerGui:WaitForChild("Cmdr")
and then making changes from there.
If we make an update that changes the Cmdr interface, then this might break your customisations. You'll then need to take manual action when updating.
We recommend against disabling any auto-update features (e.g. pinning your Cmdr version on Wally), but this will require you to be vigilant of new releases.
Duplicate ScreenGui
You should note that if you have CharacterAutoLoads set to false and you load CmdrClient before StarterGui loads (which is on the first character spawn) then you will end up with two Cmdr ScreenGuis. This normally is not an issue, but if you're also customising the Cmdr interface by hooking into PlayerGui.Cmdr
then this could be problematic.
You can mitigate this issue by refraining from requiring CmdrClient until after PlayerGui has loaded, but this will create a delay in users being able to access Cmdr until after their character has spawned for the first time.
Alternatively, you could:
- Delete
Cmdr
fromStarterGui
on the server, after you've required the Cmdr server - On the client, load your modified copy of Cmdr ScreenGui into PlayerGui (you can skip this step if you only want the default ScreenGui)
- And then, once you've inserted the gui, require CmdrClient