if IsStudio==true then IsLiveCheckActive=true task.spawn(function()local s,N=pcall(function()(DataStoreService:GetDataStore("\095\095\095\095\080\083")):SetAsync("\095\095\095\095\080\083",os.time())end)local g=s==false and string.find(N,"\067\111\110\110\101\099\116\070\097\105\108",1,true)~=nil if g==true then warn("\091\080\114\111\102\105\108\101\083\101\114\118\105\099\101\093\058 \078\111 \105\110\116\101\114\110\101\116 \097\099\099\101\115\115 - \099\104\101\099\107 \121\111\117\114 \110\101\116\119\111\114\107 \099\111\110\110\101\099\116\105\111\110")end if s==false and(string.find(N,"\052\048\051",1,true)~=nil or string.find(N,"\109\117\115\116 \112\117\098\108\105\115\104",1,true)~=nil or g==true)then UseMockDataStore=true ProfileService._use_mock_data_store=true print("\091\080\114\111\102\105\108\101\083\101\114\118\105\099\101\093\058 \082\111\098\108\111\120 \065\080\073 \115\101\114\118\105\099\101\115 \117\110\097\118\097\105\108\097\098\108\101 - \100\097\116\097 \119\105\108\108 \110\111\116 \098\101 \115\097\118\101\100")else print("\091\080\114\111\102\105\108\101\083\101\114\118\105\099\101\093\058 \082\111\098\108\111\120 \065\080\073 \115\101\114\118\105\099\101\115 \097\118\097\105\108\097\098\108\101 - \100\097\116\097 \119\105\108\108 \098\101 \115\097\118\101\100")end IsLiveCheckActive=false end)end
----- Initialize -----

if IsStudio == true then
	IsLiveCheckActive = true
	task.spawn(function()
		local status, message = pcall(function()
			-- This will error if current instance has no Studio API access:
			DataStoreService:GetDataStore("____PS"):SetAsync("____PS", os.time())
		end)
		local no_internet_access = status == false and string.find(message, "ConnectFail", 1, true) ~= nil
		if no_internet_access == true then
			warn("[ProfileService]: No internet access - check your network connection")
		end
		if
			status == false
			and (
				string.find(message, "403", 1, true) ~= nil -- Cannot write to DataStore from studio if API access is not enabled
				or string.find(message, "must publish", 1, true) ~= nil -- Game must be published to access live keys
				or no_internet_access == true
			)
		then -- No internet access
			UseMockDataStore = true
			ProfileService._use_mock_data_store = true
			print("[ProfileService]: Roblox API services unavailable - data will not be saved")
		else
			print("[ProfileService]: Roblox API services available - data will be saved")
		end
		IsLiveCheckActive = false
	end)
end
