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

Why won't my end work?

Asked by 11 years ago
1script.Parent:connect.Touched(onTouched)

I have the function onTouched but the end, won't work. Red lines.. Why?

1 answer

Log in to vote
1
Answered by 11 years ago

Man the errors in this are.. oh man..

1script.Parent.Touched:connect(onTouched)
2-- ALWAYS the Event FIRST THEN connect

Oh and just in case, this is how you do this:

1script.Parent.Touched:connect(function()
2 -- Your code here
3end)
0
OHHHHHH, well I was close, thank you! Roboy5857 20 — 11y
Ad

Answer this question