Categories > Coding > Lua >

Tutorial - How to get all things in like folder or model

Posts: 14

Threads: 8

Joined: Jun, 2023

Reputation: 0

Posted

Hello guys sanskingstop here with a nother tutorial today i will teach you how to get everything in a folder or model or anything like that

 

so example in workspace there is folder name "folder" and in that folder there is parts that are name part1 part2 part3 part4 like that

you have to use this code to get all part name

for i,v in pairs(game.Workspace.folder:GetChildren()) do
       print(v.Name) -- this will print name of all things in folder
       v:Destroy() -- it will destroy all things in folder
end

output:
Part1
Part2
Part3
Part4

then it will destroy all things in folder

 

thank you and stay tuned for next tutorial

  • 0

best roblox lua exploit scripter

Posts: 111

Threads: 4

Joined: Apr, 2023

Reputation: 6

Replied

ngl I think anyone could do this 💀

  • 0

"your code looks like a decompiled roblox script", - Whoman

Posts: 2

Threads: 1

Joined: Jul, 2023

Reputation: 0

Replied

Good afternoon. If you are interested in a sport like MMA, you definitely need to read this article. How Many MMA Fighters Have Died sam vasquez death . Yes, unfortunately injuries happen in pro sports, but the worst part is when those injuries are deadly. Read this today as it is very interesting and informative!

  • 0

blinx

blinx

Posts: 18

Threads: 2

Joined: May, 2022

Reputation: 8

Replied

Have you just learnt how to use instance methods? Or what...

  • 0

https://cdn.discordapp.com/attachments/1109236269650817064/1137011043760078918/Siggy.png

Users viewing this thread:

( Members: 0, Guests: 2, Total: 2 )