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

Basic tool events not firing?

Asked by 7 years ago
tool = script.Parent

tool.Equipped:connect(function()
    print "Equipped"
    humanoid = tool.Parent:FindFirstChild('Humanoid')
end)

tool.Activated:connect(function()
    print "activated"
    humanoid.Health = humanoid.Health - 5
end)

Pretty self-explanatory, but none of the events are firing for some reason. Anyone know why?

0
Are you using a script to run this? (Not a localscript) RubenKan 3615 — 7y
0
Would that matter Ruben? OldPalHappy 1477 — 7y
0
Works for me. This is a LocalScript right? M39a9am3R 3210 — 7y
0
Could it be because of how he defines Humanoid? OldPalHappy 1477 — 7y
0
It is a localscript. And the events don't fire at all. No errors, it doesn't print. Nothing. cheetosrevenge 20 — 7y

Answer this question