Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with tool that destroys certain part?

Asked by
Zjyuak -1
3 years ago
Edited 3 years ago

I need help making a hammer(Tool) that only destroys a certain part called WoodBlock with click detector Please if you could help, it would be appreciated

0
We need more information virushunter9 943 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Inside that WoodBlock you could add a script:

script.Parent.Touched:Connect(function(hit) -- Detects if its because touched
    if hit.Parent:FindFirstChild("Handle") then -- The tool needs a part called handle                               
            script.Parent:Destroy()
    end
end

0
I thought it would work but it didnt. Not sure why Zjyuak -1 — 3y
Ad

Answer this question