How to get the next thing in a table?

Hello, I’m not sure how to get the next thing in a table like this.

local Table = {
			Bob = "Bob",
			Billy = "Billy",
			Joe = "Joe"
}
	
local Current = Table["Bob"]
-- Not sure what to put here
2 Likes

I would recommend using the table as an array instead of a dictionary:

local Table = {
	"Bob",
	"Billy",
	"Joe"
}
	
local Current = Table[1]
local Next = Table[2]
4 Likes

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