Joined
·
2 Posts
So I am making a Murder Mystery game and I am making an inventory system. However, I keep getting this error when I load the data.
This is the code
if v:IsA("Tool") then
playerData["Inventory"][v.Name] = {
["Owned"] = data["Inventory"][v.Name]["Owned"], -- ERROR BREAKPOINT
["Mesh"] = data["Inventory"][v.Name]["Mesh"],
["Texture"] = data["Inventory"][v.Name]["Texture"],
["Gun"] = data["Inventory"][v.Name]["Gun"]
}
end
end
This is the code
if v:IsA("Tool") then
playerData["Inventory"][v.Name] = {
["Owned"] = data["Inventory"][v.Name]["Owned"], -- ERROR BREAKPOINT
["Mesh"] = data["Inventory"][v.Name]["Mesh"],
["Texture"] = data["Inventory"][v.Name]["Texture"],
["Gun"] = data["Inventory"][v.Name]["Gun"]
}
end
end