Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Rolexian initation script by Local Communist
- local Metatable = getrawmetatable(game)
- local OldMetatable = getrawmetatable(game)
- setreadonly(Metatable, false)
- setreadonly(OldMetatable, false)
- local function checkFunction(Object, Key)
- if game.IsA(Object, "DataModel") then
- if Key == "GetObjects" then
- return function(Instance, Asset)
- return { game:GetService("InsertService"):LoadLocalAsset(Asset) }
- end
- end
- if Key == "HttpGet" then
- return function(Instance, ...)
- if string.find(..., "getauthticket") then
- return "Malicious site"
- else
- return { game:HttpGetAsync(...) }
- end
- end
- end
- if Key == "HttpPost" then
- return function(Instance, ...)
- if string.find(..., "getauthticket") then
- return "Malicious site"
- else
- return { game:HttpPostAsync(...) }
- end
- end
- end
- end
- 1
- Metatable.__index = function(Instance, Key)
- if type(Key) == "string" then
- local Function = checkFunction(Instance, Key)
- if Function then
- return Function
- end
- end
- return OldMetatable.__index(Instance, Key)
- end
- Metatable.__namecall = function(Instance, ...)
- local Argument = {...}
- local Method = table.remove(Argument)
- if type(Method) == "string" then
- local Function = checkFunction(Instance, Method)
- if Function then
- return Function(Instance, unpack(Argument))
- end
- end
- return OldMetatable.__namecall(Instance, ...)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement