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

When the two parts touch, nothing happens! Help?

Asked by 3 years ago

When the note touches the part, it doesn't destroy it.

script.Parent.Touched:Connect(function(touched)
    if touched.Parent == workspace.Note1 then
        script.Parent:Destroy()
    end
end)

What am I doing wrong?

1 answer

Log in to vote
1
Answered by 3 years ago

Try this one

script.Parent.Touched:Connect(function(touched)
if touched == game.Workspace.Note1 then
script.Parent:Destroy()
end
end)

It works for me

0
sorry that i accepted so late.. i ended up making a faster method cause that worked but wasn't fast enough. peytonallen920 66 — 3y
Ad

Answer this question