I am making a form of simulator game that has multiple tools to unlock that rewards players with in-game currency when the tool is clicked. I have noticed that I am going to have to make multiple LocalScripts inside of each tool. Is there a better way to do this?
1 Like
You can make a single localscript that handles every tool, you can check if the player has clicked their left mouse button and if the tool is parented to their character then give them the reward.
1 Like
Where should I place the LocalScript?
1 Like
In StarterPlayerScripts. And if you want some security fire a RemoteEvent with first arg being passed as the tool so no exploiter can :Clone() the tool and keep getting rewards
2 Likes