Straight to the point, Let’s take minecraft’s system as an example here since it closely resembles what im trying to achieve. In minecraft, u have different items which when clicked do a specific thing or function. I know how to script this but what is the best way to approach this?
Shud I create a localscript parented to the certain item and code my behaviour there?
Or, shud i make a modulescript which contains function for all the specific items and run it whenever the right mouse btn is clicked with the item being equipped?
Or better yet, is there a much efficient solution tht i havent thot of yet?
Modulescripts 100%
You could easily make a system that fires a remote when the right mouse button is pressed, and then from that you can find and run the code related to the thing that would be used
That was mostly if you used Attributes. You could have a string and then, upon getting that string, check a dictionary and see if it has a function for it.