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

I have a problem with a script. "attempt to index nil with 'Value"?

Asked by 4 years ago
Edited 4 years ago

https://gyazo.com/059dea9068486cd5d9badd500b00305b This is an unfinished script, but it says theres a problem in line 17 but I don't know what to change?

0
Instead of sending an image link of your script, copy it and use the Lua formatting tool when you are writing your question and paste. proqrammed 285 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

Variables in Roblox are case sensitive. You define status with a lowercase s, but then reference it with capital S.

Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Hello!

Your code says Status.Value = "Intermission: "..i.." seconds left." and this isn't correct because the actual variable is called status not Status. So change Status.Value to status.Value. Variables are always case sensitive meaning that whenever you are referencing it needs to be the same case as when you created the variable.

Hope I helped!

0
Thanks, but now I got another problem again. The intermission text doesn't change and just stays as "Label" I have 2 scripts that work on the intermission. Zisser_Z -2 — 4y

Answer this question