Winner in table is nil?

I’m in the process of making a round system for my new game. I’m trying to make the board display the winning meme, but it returns with this error:

Line 251:

ScreenImage = VoteAmounts[1].Meme.ImageID

This is the line that inserts the meme to the table:

table.insert(WinningMemes, VoteAmounts[1].Meme)

If you need anymore snippets of the script, just ask.

1 Like

You are Insertting a Value, not an Index to the table, you will need to use table.find() to find the value.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.