Making a tool that is supposed to spawn a clone of the tool in hand on M1. Works on other tool, but not with the one I put the LocalScript in.
For context, the LocalScript is in the tool 'Handle' and has a RemoteEvent that has a script descendent.
On test, the following error pops up: Equipped is not a valid member of Part "Players.[PlayerName].Backpack.[ModelName].Handle"
Interestingly enough, this LocalScript (and all it's descendents) functions properly on the original tool it was in and I've double checked to see if I've missed any parts in the tool that are maybe critical and found none apart from a Handle (which is already in the tool I'm trying to debug)
Below is the LocalScript in question, any help would be appreciated:
bin = script.Parent
function onSelected(mouse)
mouse.Button1Down:connect(function()
script.RemoteEvent:FireServer(mouse.hit.p)
script.Parent:Destroy()
end)
end
bin.Equipped:connect(onSelected)

2 comments
Place the script under the tool, not the handle.
Tools have the .Equipped event, while parts do not.