![](/img/trans.png)
[英]attempt to index nil with 'leaderstats' error in roblox studio
[英]Roblox Error: Attempt to index nil with 'EquippedTool' - Studio
player.inventory.EquippedTool.Value = if returnValue.Inventory.EquippedTool ~= nil then returnValue.Inventory.EquippedTool else "BasicMike"
for _, tool in ipairs(player.inventory.OwnedTools:GetChildren()) do
print(tool.Name)
tool.Value = if returnValue.Inventory.Ownedtools[tool.Name] ~= nil then returnValue.Inventory.OwnedTools[tool.Name] else false
end
编写代码以保存每个玩家配备的工具数据并出现此错误
存货? 你的意思是
game.Players.player.Backpack
Backpack 是一个文件夹,包含所有玩家未装备的工具,如果你想找到玩家当前持有的工具,将在玩家的 Model 下
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.