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)
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)
Use Activated for tools, this is fired whenever the mouse is pressed
script.Parent.Activated:Connect(function()
-- do stuff
end)
no
that wasn't rlly his question
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
Just use the mouse.Target property in the meantime
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
Why not add this script ^ to your question to make clearer please
and why r u just saying Parent? thats wrong