Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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?

1 comment

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.

2 answers

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

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!

1 comment

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.