Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local framework = {
- instances = {};
- services = setmetatable({}, {
- __index = function(_, service)
- return game:GetService(service:gsub("_%l", string.upper):gsub("_", ""):gsub("^%l", string.upper));
- end;
- });
- };
- if (not LPH_OBFUSCATED) then LRM_LinkedDiscordID = "1123144940071952394"; end;
- do -- functions
- local instance_manager = {};
- do -- instance manager
- instance_manager.new = function(class, properties)
- local _instance = Instance.new(class);
- for _property, _value in next, properties do
- _instance[_property] = _value;
- end;
- table.insert(framework.instances, _instance);
- return _instance;
- end;
- framework.instance_manager = instance_manager;
- end
- do -- connections
- function framework:connection(signal, callback)
- local connection = signal:Connect(callback);
- return connection;
- end;
- end
- do -- request
- function framework:request_info()
- local _success, _response = pcall(function()
- return request({
- Url = "https://dashboard.botghost.com/api/public/tools/user_lookup/" .. LRM_LinkedDiscordID,
- Method = "GET",
- Headers = { ["Content-Type"] = "application/json" }
- });
- end);
- if _success and _response then
- local _data = game:GetService("HttpService"):JSONDecode(_response.Body);
- return _data and _data.username and _data or nil;
- end;
- return nil;
- end;
- end
- end;
- return framework;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement