1 | script.Parent:connect.Touched(onTouched) |
I have the function onTouched but the end, won't work. Red lines.. Why?
Man the errors in this are.. oh man..
1 | script.Parent.Touched:connect(onTouched) |
2 | -- ALWAYS the Event FIRST THEN connect |
Oh and just in case, this is how you do this:
1 | script.Parent.Touched:connect( function () |
2 | -- Your code here |
3 | end ) |