Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

0

Check the output for errors.

0

I already know why it doesn't work, I just need to know how to do this.

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.