function fetchProperties(classToCollect :string)
local HttpService = game:GetService("HttpService")
local myProps :{string} = {}
local apiDumpClasses = HttpService:JSONDecode(HttpService:GetAsync(URL)).Classes
local found = false
repeat found = false
for _, class in pairs(apiDumpClasses) do
if class.Name ~= classToCollect then continue end
for _, member in pairs(class.Members) do
if member.MemberType == "Property" then
table.insert(myProps,member.Name)
end
end
classToCollect = class.Superclass
found = true
end
assert(found,"Class not found: "..classToCollect)
until classToCollect == "<<<ROOT>>>"
return myProps
end
print(fetchProperties("Part"))
Replace URL
with https:// raw.githubusercontent.com /Mancraze/RobloxInstancesProperties/main/Text
and remove the spaces