Categories > Coding > Lua >
Tutorial - How to get all things in like folder or model
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
best roblox lua exploit scripter
Replied
ngl I think anyone could do this 💀
Cancel
Post
"your code looks like a decompiled roblox script", - Whoman
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!
Cancel
Post
Replied
Have you just learnt how to use instance methods? Or what...
Cancel
Post
https://cdn.discordapp.com/attachments/1109236269650817064/1137011043760078918/Siggy.png
Users viewing this thread:
( Members: 0, Guests: 2, Total: 2 )
Cancel
Post