We use cookies on this site to enhance your user experience

Get GlobalDataStore Instance

Get GlobalDataStore Instance

Sep 05 2018, 1:53 PM PST

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.

local DataStoreService = game:GetService("DataStoreService")

local GlobalDataStore = DataStoreService:GetGlobalDataStore()