It says this when I press play "ServerScriptService.Tycoon:40: attempt to call a nil value"

This is the line of code it takes me to "newComp:Init()"

Could someone please help. What I want it to do when I hit play is print in the output section. "Test Initialized"

I'm new to this coding stuff so please put the answer in simple form.

4 comments

0

bro i wont understand what you are talking about if you dont link the code that you wrote

0

bro i wont understand what you are talking about if you dont link the code that you wrote, this error happens because :Init function does not exist, maybe you wrote it incorrectly and it should be :init lowercase, there are tons of possibilities.

0

newComp:Init()

0

Can you show the full script?