DataStoreSetOptions
Last updated
local DataStoreService = game:GetService("DataStoreService")
local GoldStore = DataStoreService:GetDataStore("PlayerGold")
local success, errorMessageOrLoadValue = pcall(function()
local userIds = nil
local options = Instance.new("DataStoreSetOptions")
options:SetMetadata(
{
Reason = "DailyMission"
})
GoldStore:SetAsync(player.UserId, 100, userIds, options)
end)