[SOLVED] Error Loading Scripts (reading 'array')

help i dont know what’s the problem but it says error loading scripts :face_holding_back_tears: and i have to pass this today
link to project: -

Hi @ces_lavie and welcome!

There is a problem with your attributes. If you try to parse your script, you will see the errors in the editor as well.

Please check the page below for more information about attributes.

this still comes out when i try to launch the 2nd scene :frowning:

You need to correct your attributes like below and parse the script with the parse button.

// adding attributes
GameBarScript.attributes.add('foodTxt1', { type: 'entity' })
GameBarScript.attributes.add('foodTxt2', { type: 'entity' })
GameBarScript.attributes.add('levelTxt', { type: 'entity' })
GameBarScript.attributes.add('timerTxt', { type: 'entity' })

Please check my previous reply.

Did this and I can edit again on the scene. Thank you so much!

1 Like