local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local player = Players.LocalPlayer local gui = player:WaitForChild("PlayerGui"):WaitForChild("GameUI") local displayFrame = gui:WaitForChild("Inventory"):WaitForChild("DisplayFrame") local equipBox = gui:WaitForChild("Inventory"):WaitForChild("EquipBox") -- Find the first ImageButton in DisplayFrame (to clone) local imageButton = displayFrame:FindFirstChildOfClass("ImageButton") local bearSkinsFolder = ReplicatedStorage:WaitForChild("GameContent"):WaitForChild("BearSkins") -- Function to delay execution local function waitFor(ms) wait(ms / 1000) -- Convert milliseconds to seconds end for _, moduleScript in pairs(bearSkinsFolder:GetChildren()) do if moduleScript:IsA("ModuleScript") then -- Try requiring the module and checking for its structure local success, module = pcall(require, moduleScript) if success and typeof(module) == "table" then -- Print the contents of the module for debugging print("Module data for", moduleScript.Name) for key, value in pairs(module) do print(key, value) end -- Check if Name exists and fallback if missing if type(module.Name) == "string" then print("Module Name: ", module.Name) else warn("Module missing 'Name' property, setting fallback to moduleScript name:", moduleScript.Name) module.Name = moduleScript.Name -- Use moduleScript's name as fallback end -- Set Onsale to true module.Onsale = true -- Add a delay here to allow the data to process before cloning the ImageButton waitFor(500) -- Wait for 500 milliseconds (adjust this value as necessary) -- Clone the ImageButton and set the image local newButton = imageButton:Clone() newButton.Name = module.Name newButton.Image = module.Thumbnail or "rbxassetid://0" -- Default image if not set newButton.Visible = true newButton.Parent = displayFrame -- Connect click event to update EquipBox with the module data newButton.MouseButton1Click:Connect(function() -- Update EquipBox with the data from the selected module equipBox.ItemName.Text = module.Name equipBox.Description.Text = module.Description or "No description available" equipBox.Creator.Text = module.Creator or "Unknown Creator" equipBox.Icon.Image = module.Thumbnail or "rbxassetid://0" -- Fallback if missing print("Selected skin:", module.Name) end) print("Loaded skin:", module.Name) else warn("Failed to load module:", moduleScript.Name) end end end