GetHumanoidDescriptionFromOutfitId is part of the HumanoidDescription System but there is no tutorial on how to get an OutfitId with a script
Code
Code from Wiki
1. -- Stop automatic spawning so it can be done in the "PlayerAdded" callback
2. game.Players.CharacterAutoLoads = false * local function onPlayerAdded(player)
3. local humanoidDescriptionForOutfit = game.Players:GetHumanoidDescriptionFromOutfitId(480059254)
4. -- Spawn character with the HumanoidDescription
5. player:LoadCharacterWithHumanoidDescription(humanoidDescriptionForOutfit)
6. end
* -- Connect "PlayerAdded" event to "onPlayerAdded()" function
7. game.Players.PlayerAdded:Connect(onPlayerAdded)
I believe this is still a WIP. If the way it sounds, then that means roblox is going to allow you to grab id’s from outfits, and apply them in game.
This page is everything you need regarding this, For you to request any of those endpoint from a script though you would’ve to use a proxy like rprxy.xyz. And its really straight forward,an example on how to request one of the endpoints would be:
local http = game:GetService('HttpService')
local function getOutfits(id)
local data
local url = 'https://avatar.rprxy.xyz/v1/users/'..id..'/outfits?itemsPerPage=1000' --notice how roblox.com is replaced with rprxy.xyz
local succ,err = pcall(function() data = http:JSONDecode(http:GetAsync(url,true)) end)
local tables = data.data
local stuff = {}
for i = 1,#tables do
local subTables = tables[i]
local id = subTables["id"]
table.insert(stuff,id)
end
return stuff
end
local outfits = getOutfits(164460352)
(this gets all the Outfits from a userid, thats just an example though you can apply that to any endpoint of them)
10 Likes
thx for teaching me something new!
3 Likes