How would i make a clothing inventory system?

title mostly says it. I have a folder called OwnedShirts (and OwnedPants but it doesn’t matter), and i want an inventory gui to come up, allowing you to see all your Owned Shirts.

Client:

local invFrame = script.Parent.Parent.InventoryFrame

local players = game:GetService(“Players”)

local player = players.LocalPlayer

local character = player.Character

local template = invFrame.Space.Template

script.Parent.MouseButton1Click:Connect(function()

invFrame.Visible = not invFrame.Visible

end)

for i, v in pairs(player.OwnedShirts:GetChildren()) do

local newTemplate = template:Clone()

newTemplate.Visible = true

newTemplate.Name = v.Name

newTemplate.Text = v.Name

end

1 Like