I'm trying to make a tool that prints "fart" when its equipped and you click.
Player = game.Players.LocalPlayer
Character = Player.Character
Humanoid = Character.Humanoid
Mouse = Player:GetMouse()
local tool = script.Parent
function onEquipped()
Mouse.Button1Down:connect(function()
print("fart")
end)
end)
tool.Equipped:connect(onEquipped)
why isn't it working?

1 comment
Make sure your tool has a part named "Handle", or turn off the "RequiresHandle" property. I've had this before.