So im in my test world (trying something for a lifting spell) but I want the part to notice that I am holding a tool and then do it, while also detecting if I dont have it and then do nothing.
you dont need to give like a big answer or anything, but a link to a dev article or something would be nice,
I will edit this question if you want to see my current script (doesnt have any tool detection, but has a click detection)
Make an event for when the sword is equipped it would run. Then make the script and put it into serverscriptservice doing the action when it is equipped.
You can use '.Equipped' and '.Unequipped'
tool.Equipped:Connect(function() --script tool.Unequipped:Connect(function() --script end)
if you want more information go here: Equipped and Unequipped