Advertisement
SoulzYT

Untitled

Jun 11th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. --Rolexian initation script by Local Communist
  2.  
  3. local Metatable = getrawmetatable(game)
  4. local OldMetatable = getrawmetatable(game)
  5.  
  6. setreadonly(Metatable, false)
  7. setreadonly(OldMetatable, false)
  8.  
  9. local function checkFunction(Object, Key)
  10. if game.IsA(Object, "DataModel") then
  11. if Key == "GetObjects" then
  12. return function(Instance, Asset)
  13. return { game:GetService("InsertService"):LoadLocalAsset(Asset) }
  14. end
  15. end
  16. if Key == "HttpGet" then
  17. return function(Instance, ...)
  18. if string.find(..., "getauthticket") then
  19. return "Malicious site"
  20. else
  21. return { game:HttpGetAsync(...) }
  22. end
  23. end
  24. end
  25. if Key == "HttpPost" then
  26. return function(Instance, ...)
  27. if string.find(..., "getauthticket") then
  28. return "Malicious site"
  29. else
  30. return { game:HttpPostAsync(...) }
  31. end
  32. end
  33. end
  34. end
  35. 1
  36.  
  37. Metatable.__index = function(Instance, Key)
  38. if type(Key) == "string" then
  39. local Function = checkFunction(Instance, Key)
  40. if Function then
  41. return Function
  42. end
  43. end
  44. return OldMetatable.__index(Instance, Key)
  45. end
  46.  
  47. Metatable.__namecall = function(Instance, ...)
  48. local Argument = {...}
  49. local Method = table.remove(Argument)
  50. if type(Method) == "string" then
  51. local Function = checkFunction(Instance, Method)
  52. if Function then
  53. return Function(Instance, unpack(Argument))
  54. end
  55. end
  56. return OldMetatable.__namecall(Instance, ...)
  57. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement