Hello, I am having an issue where I am saving data to a key. "SetAsync" is not throwing any errors and running fine, but it's not actually saving.

local function editshout(player,text)
	if table.find(admins,player.UserId)then
		local s,e = pcall(function()
			database:SetAsync("Shout",text) --This isn't working, but no errors are thrown.
		end)
		if s then
			return true --It returns true. Meaning, there was no error.
		else
		    return false
		end
	end
end

setshout.OnServerInvoke = editshout

I would appreciate your help.

2 comments

0

Makd sure you setasync to the players userid https://developer.roblox.com/en-us/articles/saving-player-data

0

Shout is the key, this entry is not for a player.