I am trying to make a get properties function. The only way I can require the Api is HttpGet.
But I cannot use that any alternatives?
local HttpGet = game:HttpGet("http://setup.roblox.com/versionQTStudio")
local HttpGet2 = game:HttpGet(string.format("http://setup.roblox.com/%s-API-Dump.json", HttpGet))
local JSONDecode = HttpService:JSONDecode(HttpGet2)
--Service's.
local Workspace = game:GetService("Workspace")
local RunService = game:GetService("RunService")
local GuiService = game:GetService("GuiService")
local Stats = game:GetService("Stats")
local SoundService = game:GetService("SoundService")
local LogService = game:GetService("LogService")
local ContentProvider = game:GetService("ContentProvider")
local KeyframeSequenceProvider = game:GetService("KeyframeSequenceProvider")
local Chat = game:GetService("Chat")
local Players = game:GetService("Players")
--"Players" Instance's.
local LocalPlayer = Players.LocalPlayer
local TimerService = game:GetService("TimerService")
local MarketplaceService = game:GetService("MarketplaceService")
local PointsService = game:GetService("PointsService")
local AdService = game:GetService("AdService")
local NotificationService = game:GetService("NotificationService")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local HttpRbxApiService = game:GetService("HttpRbxApiService")
local TweenService = game:GetService("TweenService")
local TextService = game:GetService("TextService")
local PermissionsService = game:GetService("PermissionsService")
local StarterPlayer = game:GetService("StarterPlayer")
local StarterPack = game:GetService("StarterPack")
local StarterGui = game:GetService("StarterGui")
local LocalizationService = game:GetService("LocalizationService")
local TeleportService = game:GetService("TeleportService")
local JointsService = game:GetService("JointsService")
local CollectionService = game:GetService("CollectionService")
local PhysicsService = game:GetService("PhysicsService")
local BadgeService = game:GetService("BadgeService")
local Geometry = game:GetService("Geometry")
local FriendService = game:GetService("FriendService")
local InsertService = game:GetService("InsertService")
local GamePassService = game:GetService("GamePassService")
local Debris = game:GetService("Debris")
local CookiesService = game:GetService("CookiesService")
local UserInputService = game:GetService("UserInputService")
local KeyboardService = game:GetService("KeyboardService")
local MouseService = game:GetService("MouseService")
local VRService = game:GetService("VRService")
local ContextActionService = game:GetService("ContextActionService")
local ScriptService = game:GetService("ScriptService")
local AssetService = game:GetService("AssetService")
local TouchInputService = game:GetService("TouchInputService")
local BrowserService = game:GetService("BrowserService")
local AnalyticsService = game:GetService("AnalyticsService")
--local = game:GetService("")
local Selection = game:GetService("Selection")
--local = game:GetService("") (x4)
local ServerScriptService = game:GetService("ServerScriptService")
local ServerStorage = game:GetService("ServerStorage")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LuaWebService = game:GetService("LuaWebService")
local HapticService = game:GetService("HapticService")
local MeshContentProvider = game:GetService("MeshContentProvider")
local Lighting = game:GetService("Lighting")
local SolidModelContentProvider = game:GetService("SolidModelContentProvider")
local ChangeHistoryService = game:GetService("ChangeHistoryService")
--local = game:GetService("")
--local NetworkServer = game:GetService("NetworkServer")
local ClusterPacketCache = game:GetService("ClusterPacketCache")
local ScriptContext = game:GetService("ScriptContext")
local RuntimeScriptService = game:GetService("RuntimeScriptService")
local HttpService = game:GetService("HttpService")
--local LanguageService = game:GetService("LanguageService")
local TestService = game:GetService("TestService")
local VirtualInputManager = game:GetService("VirtualInputManager")
local properties
do
local hash = HttpService:GetAsync("http://setup.roblox.com/versionQTStudio")
local data = HttpService:GetAsync(string.format("http://setup.roblox.com/%s-API-Dump.json", hash))
local filter = game:GetService('HttpService'):JSONDecode(data)
properties = filter.Classes
end
local function find(tb, val)
for i, v in next, tb do
if v == val then
return true
end
end
return false
end
local function GetProperties(obj)
local props = {}
for _, t in next, properties do
local class = t.Name
for i, v in next, t.Members do
if obj:IsA(class) then
if v.MemberType == 'Property' then
if class and obj:IsA(class) and (not failed) then
table.insert(props, {
Name = v.Name,
})
end
end
end
end
end
return props
end
local InstanceP = game
for i, v in pairs(GetProperties(InstanceP)) do
for i2, v2 in pairs(v) do
print(tostring(InstanceP) .. "." .. v2, "=", InstanceP[v2])
end
end