Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make click detectors work inside of a equipped tool?

Is there a way to do this?

local Tool = script.Parent 

Tool.Equipped:Connect(function(Mouse) 
    Mouse.Button1Down:Connect(function() 
        if mouse.Target and mouse.Target.Parent then 
            Parent:remove() 
        end
    end)
end)

4 comments

0

Just use the mouse.Target property in the meantime

0

What am I doing wrong? local Tool = script.Parent Tool.Equipped:Connect(function(Mouse) Mouse.Button1Down:Connect(function() if mouse.Target and mouse.Target.Parent then Parent:remove() end

0

Why not add this script ^ to your question to make clearer please

0

and why r u just saying Parent? thats wrong

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.