Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- INSTRUCTION:
- 1.this script copy and paste to ServerScriptService
- 2.create Folder inside Workspace and inside folder create Part if u wanna see how to works script
- 3.run program!
- --------------------------------
- ADS:
- my profile in Roblox:
- https://www.roblox.com/users/140427102/profile
- my profile in YouTube:
- https://www.youtube.com/channel/UC9mjJnPdd0aUqc_sHF2U_Tg
- --------------------------------
- Enjoy!
- ]]--
- -----------Script to copy----------------
- -----------------------------------------
- local tabela = {}
- local function findParts()
- for i,v in pairs(game.Workspace.Folder:GetChildren()) do
- if v and v:IsA("Part") then
- if #tabela == 0 then
- table.insert(tabela,v)
- break
- end
- if table.find(tabela,v) == nil then
- print("searched finished")
- table.insert(tabela,v)
- end
- end
- end
- end
- local function printParts()
- print("----------------")
- for i=1,#tabela,1 do
- print(i.."."..tostring(tabela[i]))
- end
- end
- local function findPos()
- local pos = 0
- local arrays = game.Workspace.Folder:GetChildren()
- for i=1,#tabela,1 do
- pos+=1
- if table.find(arrays,tabela[i]) == nil then
- return pos
- end
- end
- return nil
- end
- local function cleanParts()
- local pos = findPos()
- if pos then
- table.remove(tabela,pos)
- end
- end
- while true do
- findParts()
- cleanParts()
- printParts()
- wait(1)
- end
Add Comment
Please, Sign In to add comment