Josiahiscool73

bgetpt

Feb 21st, 2026
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. local HttpService = game:GetService("HttpService")
  2. local RunService = game:GetService("RunService")
  3.  
  4. local success, rawList = pcall(function()
  5. return game:HttpGet("https://pastebin.com/raw/nAYM5VwM")
  6. end)
  7.  
  8. if not success then
  9. return
  10. end
  11.  
  12. local PropertyDatabase = {}
  13.  
  14. for line in rawList:gmatch("[^\r\n]+") do
  15. local className, propName = line:match("^([^%.]+)%.(.+)$")
  16.  
  17. if className and propName then
  18. if not PropertyDatabase[className] then
  19. PropertyDatabase[className] = {}
  20. end
  21. table.insert(PropertyDatabase[className], propName)
  22. end
  23. end
  24.  
  25. getgenv().BGetPT = function(instance)
  26. if typeof(instance) ~= "Instance" then
  27. return {}
  28. end
  29.  
  30. local results = {}
  31. local seenProperties = {}
  32.  
  33. for className, properties in pairs(PropertyDatabase) do
  34. if instance:IsA(className) then
  35. for _, propName in ipairs(properties) do
  36. if not seenProperties[propName] then
  37. seenProperties[propName] = true
  38.  
  39. local isSuccess, value = pcall(function()
  40. return instance[propName]
  41. end)
  42.  
  43. if isSuccess then
  44. results[propName] = value
  45. end
  46. end
  47. end
  48. end
  49. end
  50.  
  51. return results
  52. end
  53.  
Advertisement
Add Comment
Please, Sign In to add comment