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

What does this Output error mean?[Answered] [closed]

Asked by 9 years ago

attempt to index field 'GrassyField' (a nil value)

GrassyField(IntValue) is in a model called MapValues in Lighting, I'm trying to make a gui map voting system and its not working out, can someone please help me.

Locked by Shawnyg and adark

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
3
Answered by
Dominical 215 Moderation Voter
9 years ago

This error message means that it can't find the GrassyField. If you were trying to access the amount of votes that the GrassyField has it would be:

GrassyFieldVotes = game.Lighting.MapValues.GrassyField.Value

Use that variable to get the amount of votes if you didn't do that.

Make sure that the value doesn't move out of where you indexed it before the script runs! I hope this helped you as it is a very complicated standard.

0
Thanks Coolviper630 95 — 9y
Ad