Gamepass (help)

The arrangement is not right pls help :p.
How do i fix it?

It supposed be from right to left

gamepassshop(module script):

local GamepassShop = {}

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local MarketPlace = game:GetService("MarketplaceService")

local Player = Players.LocalPlayer

--Modules
local Modules = ReplicatedStorage:WaitForChild("Modules")
local Gamepasses = require(Modules.Gamepasses)

--Gui
local PlayerGui = Player:WaitForChild("PlayerGui")
local MainGui = PlayerGui:WaitForChild("MainGui")

local GamepassFrame = MainGui:WaitForChild("GamepassFrame")
local GamepassFrame2 = GamepassFrame:WaitForChild("GamepassFrame2")
local ShopClone = GamepassFrame:WaitForChild("ShopClone")
local ScrollingFrame = GamepassFrame2:WaitForChild("ScrollingFrame")

function CreateGuts()
	for i,v in pairs(Gamepasses) do
		local Clone = ShopClone:Clone()
		
		Clone.Parent = ScrollingFrame
		Clone.LayoutOrder = 1
		
		Clone.Visible = true
		
		Clone.GamepassName.Text = v.Name
		Clone.GamepassPrice.Text = v.Price
		
		Clone.GamepassImage.Image = "rbxassetid://"..v.ImageID

		Clone.GamepassImage.MouseButton1Click:Connect(function()
			MarketPlace:PromptGamePassPurchase(Player, v.GamepassID)
		end)
	end
end

function GamepassShop:Int()
	CreateGuts()
end

return GamepassShop

gamepasses(module script):

local Gamepasses = {
	
	[1] = {
		["Name"] = "Gamepass1",
		["Price"] = 250,
		["ImageID"] = 6985811550,
		["GamepassID"] = 20908357,
	},
	[2] = {
		["Name"] = "Gamepass2",
		["Price"] = 200,
		["ImageID"] = 6985811550,
		["GamepassID"] = 20908357,
	},
	[3] = {
		["Name"] = "Gamepass3",
		["Price"] = 200,
		["ImageID"] = 6985811550,
		["GamepassID"] = 20908357,
	},
	
}



return Gamepasses

Here:

	for i,v in pairs(Gamepasses) do

Try using ipairs instead of pairs.

for i,v ipairs(Gamepasses) do is not working

Normally when I do these tables I would so something with a for loop, this would be an example of what I am trying to say.

for i=1,#Gamepasses do

Although, I don’t know if it will work well, Worth a shot I guess.

For getting a specific content from a table I would say this is your best option ( I dont have experience, I’m trying my best ), I’ll try it with Name.

Gamepasses[i].Name

Not sure if this will fully resolve the issue, but it might for me when I try and make this.