PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

GetGlobalDataStore

This function returns the default GlobalDataStore. If you want to access a specific named data store instead, you should use the DataStoreService/GetDataStore|GetDataStore() function.

Returns

Return Type Summary

Code Samples


Get GlobalDataStore Instance

The following example retrieves a default data store instance which behaves like a regular Instance. Since a GlobalDataStore is an Instance, functions such as Instance/GetChildren|GlobalDataStore:GetChildren() will execute without error.