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

can some help me it wont work?

Asked by 10 years ago

1.function touch(hit) 2. hit:remove() 3.end 4.script.parent.Touch:connect(touch)

1 answer

Log in to vote
1
Answered by 10 years ago

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.
0
thxx blackmask657 2 — 10y
0
np don't forget to accept my answer xolbStudios 127 — 10y
0
ok blackmask657 2 — 10y
Ad

Answer this question