How can I get the bundle id for an animation when a player joins the game? I’m aware of how to get the animation ids if you have the bundle id, but I need a way to reverse engineer it
https://catalog.roblox.com/v1/assets/619511417/bundles
This API call takes the this animation asset ID ( Stylish Fall - Roblox ) and returns the bundle(s) ( Stylish Animation Pack - Roblox )
If you’re wanting to access it from inside Roblox, you’ll need to use a proxy service (e.g https://catalog.roproxy.com/v1/assets/619511417/bundles)
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
local Animations = {"Climb", "Fall", "Idle", "Jump", "Run", "Swim", "Walk"}
local Success, Result = pcall(Players.GetHumanoidDescriptionFromUserId, Players, 80254) --stickmasterluke's "HumanoidDescription".
if Success then
for _, Animation in ipairs(Animations) do
local AnimationId = Result[Animation.."Animation"]
if AnimationId == 0 then continue end
local Success2, Result2 = pcall(HttpService.GetAsync, HttpService, "https://catalog.roproxy.com/v1/assets/"..AnimationId.."/bundles?limit=100")
if Success2 then
local Success3, Result3 = pcall(HttpService.JSONDecode, HttpService, Result2)
if Success3 then
for _, Asset in ipairs(Result3.data) do
print("Animation ID: "..AnimationId.." belongs to Bundle ID: "..Asset.id..".")
end
else
warn(Result3)
end
else
warn(Result2)
end
end
else
warn(Result)
end
1 Like
lol uhh thanks for the implementation 2 years later.
