While doing some testing, I noticed when I did DataStore:SetAsync(key, data)... it did nothing. Nothing afterwards executed. No errors with or without pcall. (this is not the full function, but you don't need the full thing as it doesn't even get to that point.)

	local DSS = game("GetService", "DataStoreService")
	local DataStore = DSS:GetDataStore("TestStore")


	local Data = DataStoreFunctions:getCopyForClient(Player)--just a table
	local pass, reason = pcall(function()
		print("1")--only prints 1, doesnt print 2
		DataStore:SetAsync(KeyPre..Player.UserId, Data)--key = USER_User.Id
		print("2")
	end)
	print(pass, reason)--nothing here

4 comments

0

You're not getting the service correctly on line 1

0

Is it just "DataStore"? That method works for all services, just a different format. Will try thought.

0

Didn't change anything.

0

We need the full thing, or else we cannot help.