Info
System: Windows 10 - 64bit
Studio Version: Version 0.613.1.6130510 (64bit)
Description
DataStoreService’s method GetDataStore returns type GlobaDataStore instead of DataStore
It’s also a small inconsistency in the Documentation.
GetOrderedDataStore
returns an OrderedDataStore
.
GetGlobalDataStore
returns an GlobalDataStore
.
and GetDataStore``'s definition doesn't return a
DataStore`
Reproduction Steps
Copy paste this code:
local DataStoreService = game:GetService("DataStoreService")
local DS_Test2 = DataStoreService:GetDataStore("test_2")
Then type DS_Test2
so that the autocomplete starts stepping in. Compare it to the image attached in the Description.
Expected Result
That it returns DataStore
instead.
Actual Result
It returns GlobalDataStore
.
I think this is why
If I look at the API Dump.