How do i make a script that takes all the children from a folder using a for loop and turns them into a viewport frame gui for an inventory?

i have an inventory system an i would like for it to have viewports but i have a lot of items which i want to put in my inventory and i would like to know if this is possible to automate via a script

thank you

1 Like

Yes, it’s definitely possible to do something like this. To achieve this, you need to use your brain to break up your tasks into steps, then look up what you need to know. For example how to look through items in a folder, how to use viewportframes, … Everything you need for this is available for free on the internet.

Some possible sources are:

1 Like

:skull:
no way you just roasted me like that

1 Like

Bro fr just use for loop to grab all the children and then parent them into the viewport frame? duhh

(Use yo brain man)

2 Likes

sorry i suck at gui scripting :sob: :sob:

1 Like

Sorry, I am incapable of understanding human emotion, as I am an NPC.

2 Likes

Oh lol well i recommend watching some tutorials so you can actually learn how to make something instead of just copying code.

Imagine using chatgpt, as an programmer im 100% not scared of it taking over my job

1 Like

I told you the base principle of what development is generally all about. You’ll need to look things up all the time, and know how to do so efficiently and effectively.

2 Likes

You should be weary of who you watch on Youtube. Tutorials are generally the worst way of leaning to code as you’re just copying someone’s else’s work. Instead, you should learn to look things up and read the documentation.

2 Likes

By looking things up, you use the information and apply it on your own. This is definitely one of the most crucial skills to have. Besides, you won’t always have a tutorial available for everything you need, so it’s best to learn to use other sources as soon as possible.

2 Likes

I learned by watching tutorials, mostly half of their video and then trying to complete the code myself.

1 Like