of     1   

redy9567
#44636205Saturday, March 26, 2011 8:19 PM GMT

I am making a mining place and i am working on the tool and the script wont work, can you help me? function onActivated(mouse) target = mouse.Target if not target then return end if target.Name == "Dirt" target:Remove() end end script.Parent.Activated:connect(onActivated)
Xsitsu
#44636388Saturday, March 26, 2011 8:22 PM GMT

Output?
redy9567
#44636763Saturday, March 26, 2011 8:28 PM GMT

there is no output, it is blank
Xsitsu
#44637063Saturday, March 26, 2011 8:33 PM GMT

Is this inside a hopperbin or a tool?
redy9567
#44637119Saturday, March 26, 2011 8:34 PM GMT

a tool
Xsitsu
#44637226Saturday, March 26, 2011 8:36 PM GMT

I'm reading a little about this to understand it and help you more it's supposed to be inside a local script, be sure that it is and then test it and let me know if it works.
Xsitsu
#44637581Saturday, March 26, 2011 8:42 PM GMT

k I think I found a fix for the script. This should be inside of a local script: function onActivated(mouse) target = mouse.Target if not target then return end if target.Name == "Dirt" target:Remove() end end function onEquipped(mouse) script.Parent.Activated:connect(onActivated) end tool.Equipped:connect(onEquipped) This may or may not work, I'm betting it will though let me know what happens and the output.
redy9567
#44637631Saturday, March 26, 2011 8:43 PM GMT

I changed it to a local script and it still doesnt work
Xsitsu
#44637651Saturday, March 26, 2011 8:43 PM GMT

Try the new one
Robert00001
#44637653Saturday, March 26, 2011 8:43 PM GMT

function onActivated(mouse) target = mouse.Target if not target then return end if target.Name == "Dirt" then target:Remove() end end function onEquipped(mouse) script.Parent.Activated:connect(function() onActivated(mouse) end) end script.Parent.Equipped:connect(onEquipped)
Xsitsu
#44637799Saturday, March 26, 2011 8:45 PM GMT

Lol didn't see he was missing a then there and thanks for fixing the bottom part for me.

    of     1