There are a couple different ways you can go about doing this.
The less efficient way, but still a way, would be to place click detectors in each different fruit and place a script inside that does what you're trying to do, when the fruit is clicked.
Info and Example On Click Detectors
Another way would be to make a single LocalScript that detects whenever the player clicks on something. You would then add parameters / if statements to see if the player clicked on a fruit and if they did, it would run a function / do whatever it is you're trying to do with the fruit.
Ex:
1 | local player = game.Players.LocalPlayer |
2 | local mouse = player:GetMouse() |
4 | mouse.Button 1 Down:connect( function ) |
5 | print (mouse.Target.Name) |
6 | if mouse.Target.Name = = "Fruit" then |
You can choose whatever is easier for you or what is best for what you're trying to do. If you need anymore help or have questions just ask.
Hope this helped!