Recently I’ve been working on a game that involves collecting jewels (“Coins”), and while I was doing this, I realized that having a script in each jewel to fire to another script using a bindable function was a fairly poor choice to do.
in each jewel, I have it so if the player touches it, the bindable function fires over the amount that that particular jewel possesses over to the data store then deletes itself for around 60 seconds then re appearing,
but what I want to do is have just one script that affects maybe a folder of jewels, each time a jewel is touched , it sends over the amount via bindable function and collected on the datastore script.
How would I go about doing this?
(sorry if my wording is slightly weird, I don’t know how to go about this)