Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why won't my end work?

script.Parent:connect.Touched(onTouched)

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

1 answer

✓ Accepted answer

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


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


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


script.Parent.Touched:connect(function()
 -- Your code here
end)

1 comment

0

OHHHHHH, well I was close, thank you!

This discussion is preserved as it was. New answers, comments, and votes are closed.