soo for some reason the output prints the JSON table and all works but the SetAsync and all after he dont work idk why
game.Players.PlayerRemoving:Connect(function()
Values = Folder:GetChildren() -- Handle All items on the players folder in one variable every time the event fires
for i,v in ipairs(Values) do
table.insert(Items, v.Name)
end
local json = HttpService:JSONEncode(Items)
print(json)
print("ez1")
IventoryData:SetAsync(PlayerId, json)
print("ez2")
end)
end)
output image