here's the full script for anyone who needs it: https://pastebin.com/raw/JwGVJnu8
okay so as you can see in the pastebin above, it generates textbuttons every second and names the generated buttons one of the names pulled out of the table, and when you click on one of the buttons, that specific button you click is supposed to delete itself, but instead, it deletes a random button that was generated. I've tried everything that I know of, including:
plr.PlayerGui.adminpanel.mainpanel.reportedplayers[label.Text].MouseButton1Click:Connect(function()
plr.PlayerGui.adminpanel.mainpanel.reportedplayers[label.Text]:Destroy()
end)
and:
label.MouseButton1Click:Connect(function()
label:Destroy()
end
and more that I can't remember of right now. If you could show me how I could go about fixing this, that'd be great. And yes I definitely tried making this script work, I've spent about 2 hours just trying to make this script work, to no avail obviously.
Thank you!
[SerpentineKing]: Edited Code Structure

7 comments
https://pastebin.com/raw/nJZpr8VK is the new script i used. i the usernames still generate, but they're not clickable. I tried doin #Player.plr.PlayerGui.adminpanel.mainpanel.reportedplayers:GetChildren(), didn't work. currently the error (using the script linked in this comment), an error comes up in the console saying..
"Players.innocentbystander7.PlayerGui.adminpanel.mainpanel.reportedplayers.LocalScript:76: attempt to index local 'Label' (a number value). Not sure what the issue is.
thank you again. :)
Give me a second while I look this over
Ha, didn't take long, I forgot that Label is represented as the current traverse Index, not the actual Object. It's just late for me, quite embarrassed here:) Try the updated Code.
new error says '1' is not a valid member of Model
Right, apologies again, the updated code should work