1.function touch(hit) 2. hit:remove() 3.end 4.script.parent.Touch:connect(touch)
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.