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

Is there a way to know when a tool is being held, not just in someone's inventory?

Asked by
attapi0 20
9 years ago

Correct me if I'm wrong, but the Tool.Equipped() event only fires when the object enters the inventory, not when the player holds the tool.

1 answer

Log in to vote
1
Answered by
MrNicNac 855 Moderation Voter
9 years ago

The Equipped event fires when the Humanoid equips the tool, so yes, you are wrong in that it fires when it enters their inventory.

local Tool = script.Parent

Tool.Equipped:connect(function()
    print(Tool.Parent)
end)

Will only fire when it enters their character model.

0
That's really odd, right now I'm having an issue of it not working correctly. Back into the code mines I go, thank you. attapi0 20 — 9y
Ad

Answer this question