script.Parent.MouseClick:Connect(function(clicked)
print(clicked)
if clicked.Backpack["Basic Capsule"].Activated() then
print("yay")
end
end)
This script has an obvious error, but I'm trying to make it so when a tool is equipped, you can click.

2 comments
Check the output for errors.
I already know why it doesn't work, I just need to know how to do this.