Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local HttpService = game:GetService("HttpService")
- local RunService = game:GetService("RunService")
- local success, rawList = pcall(function()
- return game:HttpGet("https://pastebin.com/raw/nAYM5VwM")
- end)
- if not success then
- return
- end
- local PropertyDatabase = {}
- for line in rawList:gmatch("[^\r\n]+") do
- local className, propName = line:match("^([^%.]+)%.(.+)$")
- if className and propName then
- if not PropertyDatabase[className] then
- PropertyDatabase[className] = {}
- end
- table.insert(PropertyDatabase[className], propName)
- end
- end
- getgenv().BGetPT = function(instance)
- if typeof(instance) ~= "Instance" then
- return {}
- end
- local results = {}
- local seenProperties = {}
- for className, properties in pairs(PropertyDatabase) do
- if instance:IsA(className) then
- for _, propName in ipairs(properties) do
- if not seenProperties[propName] then
- seenProperties[propName] = true
- local isSuccess, value = pcall(function()
- return instance[propName]
- end)
- if isSuccess then
- results[propName] = value
- end
- end
- end
- end
- end
- return results
- end
Advertisement
Add Comment
Please, Sign In to add comment