Skip to content

Commit

Permalink
Update ProfileService.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Baileyeatspizza committed Oct 13, 2021
1 parent 83d0696 commit 84b1d2d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ProfileService.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2253,21 +2253,18 @@ function ProfileService.GetProfileStore(profile_store_index, profile_template) -
}
setmetatable(profile_store, ProfileStore)

local options = Instance.new("DataStoreOptions")
options:SetExperimentalFeatures({v2 = true})

if IsLiveCheckActive == true then
profile_store._is_pending = true
task.spawn(function()
WaitForLiveAccessCheck()
if UseMockDataStore == false then
profile_store._global_data_store = DataStoreService:GetDataStore(profile_store_name, profile_store_scope, options)
profile_store._global_data_store = DataStoreService:GetDataStore(profile_store_name, profile_store_scope)
end
profile_store._is_pending = false
end)
else
if UseMockDataStore == false then
profile_store._global_data_store = DataStoreService:GetDataStore(profile_store_name, profile_store_scope, options)
profile_store._global_data_store = DataStoreService:GetDataStore(profile_store_name, profile_store_scope)
end
end

Expand Down

0 comments on commit 84b1d2d

Please sign in to comment.