Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Get the assets of everything a ROBLOX user is wearing. [Excluding gear]
- -- @Acecateer
- local Http = game:GetService("HttpService")
- local UserId = 21386552
- local AppearanceAssets = Http:GetAsync("http://roproxy.tk/Asset/AvatarAccoutrements.ashx?userId="..UserId, true)
- local Assets = {}
- -- Table Conversion
- local Previous = 1
- local Next = nil
- while true do
- if Previous ~= 1 then
- Next = string.find(AppearanceAssets, ";", Previous + 1)
- if not Next then break end
- Asset = string.sub(AppearanceAssets, Previous + 1, Next - 1)
- else
- Next = string.find(AppearanceAssets, ";", Previous)
- if not Next then break end
- Asset = string.sub(AppearanceAssets, Previous, Next - 1)
- end
- table.insert(Assets, Asset)
- Previous = Next
- Next = nil
- wait()
- end
- -- Gather AssetIds
- for a, c in pairs(Assets) do
- if not string.find(c, "BodyColors") and not string.find(c, "equipped") then
- local AssetId = string.sub(c, string.find(tostring(c), "=", 1) + 1, string.len(tostring(c)))
- print("Asset number "..a..": "..AssetId)
- elseif string.find(c, "BodyColors") then
- print("Asset number "..a.." rejected due to it being BodyColors.")
- else
- print("Asset number "..a.." rejected due to it being a gear.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement