custom functions

ScubaBotScripts Feb 19th, 2020 (edited) 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --hi, just some custom functions! @0xPeep
  2. local exploit=getgenv();
  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
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand