I’m trying to post data to my OrderedDataStore with the code below:
local Success, Error = pcall(function()
MarketplaceDatastore:SetAsync(Id, tick(), {}, SetOptions)
end)
if not Success then
warn(Error)
end
The problem is that I keep getting this error:
517: Additional parameter Options not allowed
This error is referring to the {}
inside of the SetAsync function, according to Roblox this is the intent of the parameter: (Image Source)
Also included in the OrderedDataStore tutorial is a use case of the parameter:
I’m not sure why I’m getting this error, I also tried inputting my UserId and I still received the exact same error, this completely breaks my code because I need to input SetOptions into my SetAsync call but I can’t do that because whatever I input into the UsersId parameter just errors and kills my code.
If anyone has any ideas on how to fix this it would be very much appreciated, thanks!