Advertisement
anphu04

ROBLOX search an object by name and get full name

May 6th, 2019
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. -- 6/5/2019 --
  2. -- by valualty (anphu04) --
  3.  
  4. function scan(p)
  5. for i,v in pairs(p:GetChildren()) do
  6. local name = string.lower(v.Name)
  7. if string.find(name,'ayy') then
  8. print(v:GetFullName())
  9. end
  10. scan(v)
  11. end
  12. end
  13. scan(workspace)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement