local apple = script.Parent
local CD = apple.ClickDetector
CD.MouseClick:connect(function(player)
local BP = player.Backpack
if BP:FindFirstChild('apple') == false then
apple.Parent:Clone().Parent = BP
end
end)
I have a ClickDetector, and a handle. Not sure where I'm going wrong.

2 comments
What dose apple.Parent mean? Apple should be in a tool with a handle., If you can, show a link to a photo of your setup for the apple in workspace or where ever it is located. Thank you.
https://gyazo.com/3c51661c6bf381c84a4a56351b517346