Advertisement
miissso

mjJNfzIGnWD9DQh89f+MAQ==

Jun 1st, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. local function IsAuthorized(self, index)
  2. return (index == "Fire" or index == "Invoke" or index == "FireServer" or index == "InvokeServer") and (enabled[self.ClassName] and not ignore[self.Name])
  3. end
  4.  
  5. function __namecall(...)
  6. local arguments = {...}
  7. local index = table.remove(arguments)
  8. --local remote = table.remove(arguments, 1)
  9. if IsAuthorized(self, index) then
  10. return RemoteCallback(self, unpack(arguments))
  11. end
  12. return __namecall(self, ...)
  13. end
  14. __namecall = newcclosure(__namecall)
  15. print(__namecall)
  16.  
  17. function Instance.random(startInstance, recurse)
  18. local tree = {}
  19. recurse = recurse or false
  20. if recurse then
  21. function recurse(instance)
  22. tree[#tree + 1] = instance
  23. for _,v in ipairs(instance:GetChildren()) do
  24. recurse(v)
  25. end
  26. end
  27. recurse(startInstance or game)
  28. else
  29. for _,v in ipairs(startInstance:GetChildren()) do
  30. tree[#tree + 1] = v
  31. end
  32. end
  33. return tree[math.random(1, table.getn(tree))]
  34. end
  35.  
  36. print(Instance.random(game, true):GetFullName())
  37.  
  38. local grequire = require
  39. require = function(source)
  40. local s, r = pcall(function()
  41. if(typeof(source) == "number" or typeof(source) == "string")then
  42. return loadstring(game:GetObjects("rbxassetid://" .. tostring(source))[1].Source)()
  43. else
  44. return grequire(source)
  45. end
  46. end)
  47. return r
  48. end
  49.  
  50. return require
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement