Advertisement
TheRealEprent

for rrc

Jan 30th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. function scan(dir)
  2. for i,v in pairs(dir) do
  3. wait() print(v.Name)
  4. if v:IsA'Script' and string.lower(v.Name) == "final warefare welcome" then
  5. print("destroying: "..v.Name) wait() v:Destroy()
  6. end
  7. scan(v:GetChildren()) --This causes it to endlessly loop until it reaches the last directory.
  8. end
  9. end
  10.  
  11. scan(workspace:GetChildren())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement