so i’m making a game in the style of tower of hell, but when i change the color of a level, it happens, the problem is that it doesn’t change the color of a model inside, i don’t know the reason for this to happen, if someone can help me I appreciate it
According to the LUA manual: pairs () and ipairs () are functions that can be used with a for loop to go through each element of an array or dictionary without needing to set starting or ending points. pairs () is used with dictionaries, and ipairs () is used with arrays.
The index doesn’t matter here. As long as it loops through the order in which it does so as no effect on the outcome of the program. There is no required order here as long as it hits the parts.
I’ll test it right now, you could be right I’m not 100% familiar with ipairs haha