Advertisement
ScubaBotScripts

custom functions

Feb 19th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. --hi, just some custom functions! @0xPeep
  2. local exploit=getgenv();
  3.  
  4. exploit["FindFirstDescendantOfLower"]=function(object,descendant,...)
  5. for i,v in next,object:descendants() do
  6. if v.Name:lower()==descendant do
  7. return {true,v};
  8. elseif v.Name:lower()~=descendant then
  9. return {false,v};
  10. end
  11. end
  12. end
  13.  
  14. exploit["FindFirstChildOfLower"]=function(object,child,...)
  15. for i,v in next,object:children() do
  16. if v.Name:lower()==child then
  17. return {true,v};
  18. elseif v.Name:lower()~=child then
  19. return {false,v};
  20. end
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement