For every item in a player's backpack, a frame is created. After that, the frame is positioned horizontally. What I need help on is the positioning. If the number of frames is odd, like 1 or 3, to place the middle frame in the middle. But if the number of frames/items is even, like 2 or 4, then make the frames equidistance to the center.
Here is a visual concept, + = center.
+
Odd(3Frames): F F F
Even(2Frames): F F

1 comment
Yeah I know how to determine if it's even or odd. What I'm having trouble on is how to script the position if it's even, and how to position if it's odd.