local v1 = {};
local l__MarketplaceService__1 = game:GetService("MarketplaceService");
local l__LocalPlayer__2 = game.Players.LocalPlayer;
local l__ScrollingFrame__3 = script.Parent.Parent.Parent.Parent.ScrollingFrame;
local l__ExampleItemFrame__4 = script.Parent.Parent.Parent.Parent.Folder.ExampleItemFrame;
local function u5(p1)
return l__MarketplaceService__1:GetProductInfo(p1, Enum.InfoType.GamePass);
end;
local function u6(p2)
return l__MarketplaceService__1:UserOwnsGamePassAsync(l__LocalPlayer__2.UserId, p2);
end;
local l__TweenService__7 = game:GetService("TweenService");
local function u8(p3)
l__MarketplaceService__1:PromptGamePassPurchase(l__LocalPlayer__2, p3);
end;
function v1.Get(p4)
l__ScrollingFrame__3.CanvasSize = UDim2.new(0, 0, 2, 0);
l__ScrollingFrame__3.Size = UDim2.new(1, 0, 0.804, 0);
local v2, v3, v4 = pairs(game.ReplicatedStorage.GamepassIDs:GetChildren());
while true do
local v5, v6 = v2(v3, v4);
if not v5 then
break;
end;
local v7 = l__ExampleItemFrame__4:Clone();
local l__Value__8 = v6.Value;
v7.Name = u5(l__Value__8).Name;
v7:FindFirstChild("Title").Text = u5(l__Value__8).Name;
v7.Parent = l__ScrollingFrame__3;
v7:FindFirstChild("ItemImage").Image = "http://www.roblox.com/asset/?id=" .. u5(l__Value__8).IconImageAssetId;
v7:FindFirstChild("RobuxAmount").Text = tostring(u5(l__Value__8).PriceInRobux) .. "R$";
v7:FindFirstChild("Description").Text = tostring(u5(l__Value__8).Description);
if u6(l__Value__8) then
v7:FindFirstChild("BuyBackground"):FindFirstChild("Buy").Text = "Owned";
end;
l__TweenService__7:Create(v7, TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {
ImageTransparency = 0
}):Play();
for v9, v10 in pairs(v7:GetDescendants()) do
if v10:IsA("ImageLabel") then
l__TweenService__7:Create(v10, TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {
ImageTransparency = 0
}):Play();
wait();
elseif v10:IsA("TextLabel") then
l__TweenService__7:Create(v10, TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {
TextTransparency = 0
}):Play();
wait();
elseif v10:IsA("TextButton") then
l__TweenService__7:Create(v10, TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {
TextTransparency = 0
}):Play();
wait();
end;
v7:FindFirstChild("BuyBackground"):FindFirstChild("Buy").MouseButton1Click:Connect(function()
if not u6(l__Value__8) then
u8(l__Value__8);
end;
end);
end;
end;
end;
return v1;
The script does not have an error the only issue is that instead of putton all id's located in replicared storage it just puts one and dups it ALOT,
Link to screenshot : https://imgur.com/a/ZcklMCJ
How would i make it so it just puts all of those gamepasses in order without a infinit amount of VIP gamepasses?

2 comments
this hurt to read, thankfully the code is probably copy and paste so it won't have any spelling mistakes
The code was actually righten by my friend.