Hello so I’m creating an attachment system, and I ran into a few problems. I have a table full of attachments the player chose, but for example, if I chose 4 attachments then that’ll make the table have those four attachments inside and if I remove slot 2 from the table and add a new attachment then that attachment would number 4 even though there’s already a number 4 then there’s 2 number 4’s (i don’t think this makes sense here’s a video)
basically what I’m trying to do is just order it (I’m just adding a number next to the attachment name since they have the same name. So it could be easier to find that certain one whenever I’m moving it or deleting it and later saving it) I’m not sure if I should just replace that slot on the table with nil when I’m deleting the attachment? and when I add a new attachment it’ll check if there’s a nil value on a table then replace it with the new attachment