hello guys this is a very lame project im making a survival game on roblox (like minecraft) and decided to optimize my game using buffers so i made this i represents the offset of the value in the buffer (bytes) X Y Z are just the positions in 3d space CX, CY and CZ are the chunk size left and right arrow increments/subtract the i value by 1 a and d does the same but slower (for more precision) z increases the Z value x increases the X value k and l increases/subtract the i value by 16 formulas so dont have to look into my code and analyze: y = i % (CY + 1) z = math.floor( ( i / (CY + 1) ) % ( CZ + 1 ) ) x = math.floor( ( i / ( (CY + 1) * (CZ + 1) ) ) %(CX + 1) ) valuethatincrementsXbyOne = (CY + 1) * (CZ + 1) valuethatincrementsZbyOne = CY + 1 alr thats it