-- Get the Workspace service
local workspace = game:GetService("Workspace")
-- Find the folder named "Equippables" in the Workspace
local equippablesFolder = workspace:FindFirstChild("Equippables")
-- Check if the "Equippables" folder exists
if equippablesFolder and equippablesFolder:IsA("Folder") then
-- Find the folder named "Items" inside the "Equippables" folder
local itemsFolder = equippablesFolder:FindFirstChild("Items")
-- Check if the "Items" folder exists
if itemsFolder and itemsFolder:IsA("Folder") then
-- Iterate through all children of the "Items" folder
for _, child in ipairs(itemsFolder:GetChildren()) do
-- Check if the child is a Model
if child:IsA("Model") then
-- Print the name of the Model
print("Found Model: " .. child.Name)
end
end
else
-- Print a message if the "Items" folder does not exist
print("The 'Items' folder does not exist inside the 'Equippables' folder.")
end
else
-- Print a message if the "Equippables" folder does not exist
print("The 'Equippables' folder does not exist in Workspace.")
end
To embed this project on your website, copy the following code and paste it into your website's HTML: