Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I know why this script doesn't work, but can someone tell me how to click when a tool is equipped?

Asked by 2 years ago
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.

0
Check the output for errors. MarkedTomato 810 — 2y
0
I already know why it doesn't work, I just need to know how to do this. NeoDogez 18 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

nvm i fixed it myself i just turned the if clicked into a function

Ad

Answer this question