It's a bit complicated to me, this is what I tried:
function onClick()
wait(1)
local enabled = true
function touchedEffect()
if not enabled then return end
if not touchedEffect then return end
local character = touchedEffect.Parent
local player = game.Players:GetPlayerFromCharacter(character)
player.leaderstats.Candy.Value = player.leaderstats.Candy.Value +3
end
end
if script.Parent.InUse then (onClick)
end

3 comments
It didn't quite work. Please review it when you have a chance.
Alright
What are the errors?