请教大佬一个数据存储读取的问题~

基本的Data Script是這樣的哦

local DSS = game:GetService(“DataStoreService”)

local PlayerCash = DSS:GetDataStore(“Cash”)

game.Players.PlayerAdded:Connect(function(Player)

local Folder = Instance.new("Folder")
Folder.Name = "Data"
Folder.Parent = Player
local Cash = Instance.new("IntValue")
Cash.Name = "Cash"
Cash.Parent = Player.Data
Cash.Value = PlayerCash:GetAsync(Player.userId) or 0

end)

game.Players.PlayerRemoving:connect(function(Player)
PlayerCash:SetAsync(Player.userId, Player.Data,Cash,Value)
end)

又出现这个问题了:cry:

1 个赞
关于我们    加入我们    条款    隐私政策
©2021 Roblox Corporation、Roblox、Roblox 标志及 Powering Imagination 是我们在美国及其他国家或地区的注册与未注册商标。
粤ICP备20013629号