#Need help fixing array error

1 messages · Page 1 of 1 (latest)

mossy trellis
#

I am trying to make a visual novel in roblox, but when I try to get a value from the data array it gives the error " 20:29:14.580 Players.hyperpiper143.PlayerGui.dGUI.dHandler.Dialogue:29: attempt to index nil with nil"
its getting called in Dialogue code in photo 2

photo 1: data variable which is part of the error
photo 2: dialogue code line 6 is calling the problem code
photo 3: the function that is throwing an error at line 5 in conjunction with photo 2

any help is appreciated and if you need more info just ask

mossy trellis
storm yew
# mossy trellis chapter is set to 0

I'd suggest printing out data, then printing out the next index. If there are a lot of nils, you want to confirm that all the variables are set properly before you try and use them to debug this

cobalt mapleBOT
#

studio** You are now Level 1! **studio

mossy trellis
storm yew