Can't add text to scollView [HELP]

Hi, i’m trying to use a scrollView widget to create a textual guide for my game. I’m testing it in an empty project so it is the only element in the code. When I start it it gives me this error:

ERROR: table expected. If this is a function call, you might have used ‘.’ instead of ':'

 

File: ERROR

 

stack traceback:

 

 

 

 

[C]: in function 'insert’

 

?: in function 'insert’

main.lua:48: in main chunk

 

This is the code I’m using:

 

Schermata-2017-05-24-alle-13.40.29.png

 

Thank you

Hi Riccardo and welcome to the forums.  It’s always better to copy/paste code in the forums. When you’re ready to paste it in, hit the blue <> button in the bar with Bold, Italics, etc. and paste the code in the popup window. That way people who want to help you can copy/paste the problem area. We can’t do that from an image.

Anyway, guideTextObect is misspelled when you try to insert it into the scrollView.

Rob

Hi Riccardo and welcome to the forums.  It’s always better to copy/paste code in the forums. When you’re ready to paste it in, hit the blue <> button in the bar with Bold, Italics, etc. and paste the code in the popup window. That way people who want to help you can copy/paste the problem area. We can’t do that from an image.

Anyway, guideTextObect is misspelled when you try to insert it into the scrollView.

Rob