miissso

646636346gerfgdzsafgsdg45t353543

Jun 1st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 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(function(__namecall)
  15. print("[no var namecall w/newcclosure Hook]",__namecall)
  16.  
  17. __newindex=newcclosure(function(self,...)
  18. return f(self,...)
  19. end)
  20. print("__newindex w/newcclosure", __newindex)
  21.  
  22. __index=newcclosure(function(self,...)
  23. return shit(self,...)
  24. end)
  25. print("__index w/newcclosure", __index)
  26.  
  27. function Instance.random(startInstance, recurse)
  28. local tree = {}
  29. recurse = recurse or false
  30. if recurse then
  31. function recurse(instance)
  32. tree[#tree + 1] = instance
  33. for _,v in ipairs(instance:GetChildren()) do
  34. recurse(v)
  35. end
  36. end
  37. recurse(startInstance or game)
  38. else
  39. for _,v in ipairs(startInstance:GetChildren()) do
  40. tree[#tree + 1] = v
  41. end
  42. end
  43. return tree[math.random(1, table.getn(tree))]
  44. end
  45.  
  46. print(Instance.random(game, true):GetFullName())
  47.  
  48. local grequire = require
  49. require = function(source)
  50. local s, r = pcall(function()
  51. if(typeof(source) == "number" or typeof(source) == "string")then
  52. return loadstring(game:GetObjects("rbxassetid://" .. tostring(source))[1].Source)()
  53. else
  54. return grequire(source)
  55. end
  56. end)
  57. return r
  58. end
  59.  
  60. return require
Add Comment
Please, Sign In to add comment