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

How come when the tool is equipped is does not print?

I have a tool just named "Tool" in the starter pack. My LocalScript is a child of the tool. Here is the code:

local tool = script.Parent

tool.Equipped:Connect(function()
	print("equipped")
end)

Now for some reason that I do not understand, whenever the tool is equipped it does not print "equipped" to the console. I've tried with both :connect and :Connect if that matters at all.

2 comments

0

The script worked for me, this is the full script? The localscript isn't disabled?

0

That is the full script and the localscript is not disabled. I am very confused since if I print something outside of the Connect function it works fine.

1 answer

✓ Accepted answer

I think it is because you do not have a Handle part in your tool, try putting a Part in your tool and name the part "Handle"

1 comment

0

Derp. Thanks!

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