📜  如何使用数据存储 roblox - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:52.859000             🧑  作者: Mango

代码示例1
local DataStoreService = game:GetService("DataStoreService") local experienceStore = DataStoreService:GetDataStore("PlayerExperience") local success, errorMessage = pcall(function()    experienceStore:SetAsync("User_1234", 50)end)if not success then    print(errorMessage)end