Advertisement
CatGray

Can't send no nitro

Mar 20th, 2024 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1.  
  2. local function printFullNames()
  3. local object = assert(loadstring("return " .. getgenv().path))()
  4. if object then
  5. print("Object:", object:GetFullName())
  6.  
  7. -- Print children
  8. print("Children:")
  9. for _, child in pairs(object:GetChildren()) do
  10. print(child:GetFullName())
  11. end
  12.  
  13. -- Print parents
  14. print("Parents:")
  15. local parent = object.Parent
  16. while parent do
  17. print(parent:GetFullName())
  18. parent = parent.Parent
  19. end
  20. else
  21. print("Object not found.")
  22. end
  23. end
  24.  
  25. -- Example usage:
  26. printFullNames()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement