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.
nvm i fixed it myself i just turned the if clicked into a function