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

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

Asked by
Jephi 42
5 years ago

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.

0
The script worked for me, this is the full script? The localscript isn't disabled? Vulkarin 581 — 5y
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. Jephi 42 — 5y

1 answer

Log in to vote
1
Answered by
aazkao 787 Moderation Voter
5 years ago
Edited 5 years ago

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"

0
Derp. Thanks! Jephi 42 — 5y
Ad

Answer this question