Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is it saying "attempt to call a nil value" when I test my tycoon?

Asked by 3 years ago

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.

0
bro i wont understand what you are talking about if you dont link the code that you wrote PokumeKachi 51 — 3y
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. imKirda 4491 — 3y
0
newComp:Init() JordanMaster1947 0 — 3y
0
Can you show the full script? AProgrammR 398 — 3y

Answer this question