1.function touch(hit) 2. hit:remove() 3.end 4.script.parent.Touch:connect(touch)
✓ ANSWER ACCEPTED
can some help me it wont work?
1 answer
✓ Accepted answer
Well, you made a simple mistake. Touch is not an event but Touched is. Here is the proper way to make that script. By the way, please use the code block next time.
function touch(hit)
hit:remove()
end
script.Parent.Touched:connect(touch)-- You made an error here, touch is not an event.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
thxx
np don't forget to accept my answer
ok