I have a child added script and it works so I don't understand why this one isn't working. it remove it from the table, but when I re join the game, the friend name is still there. so it moved it, but didn't save. anybody know why it doesn't save?
game.Players:FindFirstChild(plr.Name).Backpack.Friends.ChildRemoved:Connect(function()
DS:UpdateAsync("43214235235", function(old)
friends[plr.UserId] = old
local removed = plr.Backpack.RemovedFriend -- player's ID
table.remove(friends[plr.UserId], removed.Value)
removed:Destroy()
return friends[plr.UserId];
end)
end)

1 comment
that works. even though i still had to tweak it for my script. but thanks anyways :D