#Why does roblox treat bundle models this way?😨😨😨😈🙈
1 messages · Page 1 of 1 (latest)
here is the handler, i will show send it in 2 messages since discord doesnt allow long messages
`task.wait(1)
local AES = game:GetService("AvatarEditorService")
local bundle = game:GetService("AssetService"):GetBundleDetailsAsync(script.Parent.BundleID.Value)
local toGet = {}
for _, data in pairs(bundle.Items) do
if not(data.Type == "UserOutfit") then
task.spawn(function()
table.insert(toGet, data.Id)
end)
end
end
local result = AES:GetBatchItemDetails(toGet, Enum.AvatarItemType.Asset)
local hum = script.Parent.HumanoidDescription
if script.Parent.BundleID.Value ~= 0 then
for _, data in pairs(result) do
if data.AssetType == "Face" then
hum.Face = data.Id
elseif data.AssetType == "Head" then
hum.Head = data.Id
elseif data.AssetType == "LeftArm" then
hum.LeftArm = data.Id
elseif data.AssetType == "LeftLeg" then
hum.LeftLeg = data.Id
elseif data.AssetType == "RightArm" then
hum.RightArm = data.Id
elseif data.AssetType == "RightLeg" then
hum.RightLeg = data.Id
elseif data.AssetType == "Torso" then
hum.Torso = data.Id
end
end
script.Parent:WaitForChild("Rig"):WaitForChild("Humanoid"):ApplyDescription(hum)
script.Parent.Rig.Name = bundle.Name
script.Parent.Name = bundle.Name
end`
`script.Parent.TRY.ProximityPrompt.Triggered:Connect(function(plr)
if plr.Character then
local char = plr.Character.Humanoid.HumanoidDescription:Clone()
char.Parent = script
for _, data in pairs(result) do
if data.AssetType == "Face" then
char.Face = data.Id
elseif data.AssetType == "Head" then
char.Head = data.Id
elseif data.AssetType == "LeftArm" then
char.LeftArm = data.Id
elseif data.AssetType == "LeftLeg" then
char.LeftLeg = data.Id
elseif data.AssetType == "RightArm" then
char.RightArm = data.Id
elseif data.AssetType == "RightLeg" then
char.RightLeg = data.Id
elseif data.AssetType == "Torso" then
char.Torso = data.Id
end
end
plr.Character.Humanoid:ApplyDescription(char)
char:Destroy()
end
end)
script.Parent.BUY.ProximityPrompt.Triggered:Connect(function(plr)
game:GetService("MarketplaceService"):PromptBundlePurchase(plr, script.Parent.BundleID.Value)
end)`
@late summit do you know why?
why me 
idk i seen you know how to help people in past
so help me now please its small task
yeah but maybe something is wrong with my code
like its simple code but i cannot figure it out
i really need someone who knows how to script unlike me to fix this xD
the head doesn’t load because it’s usually a separate asset or a dynamic head — you’ll need to fetch and add it manually.
how please
oh but if i add it manually it wont affect buying, right?
yeah, it won’t affect buying — adding the head manually is just for looks in-game. when the player actually buys the bundle, roblox gives them the full thing automatically, including the head.
oh okay but i thought if it didnt add head the whole bundle would fail
do you have any code in mind that would add it manually?
the bundle won’t fail if the head’s missing — it’s just for looks. you can manually add the head using InsertService with the head asset ID.
but
i do have a code
that might work
but then how does the bundle buying work
the preview is just visual. the actual bundle purchase gives everything that's part of the bundle, no matter what you manually show.
what about the part where there is char.Head
char.Head = data.Id works only for classic heads — dynamic heads won’t show and must be loaded manually with InsertService. the purchase will still give the full bundle regardless.
thank you bro
np
** You are now Level 5! **
yay
could you show it please
it might not work
but okay
``local InsertService = game:GetService("InsertService")
-- replace with the actual head asset ID
local headAssetId = 12345678
-- parent this to wherever you're previewing the bundle (like a model or character)
InsertService:LoadAsset(headAssetId):GetChildren()[1].Parent = yourModel.Head``
this is a quick way to manually add the head using InsertService but it probably wont work
i have plugin that crates models and adds bundles to them without the buy, so i might get the head from that, but should i add it at the bottom or where exactly
yes, add the head after ApplyDescription runs — that’s the safest spot to manually insert the head without it getting removed.
before here right?
yup, im pretty sure
oh okay thanks bro, and do i need to add face manually too or thats working normally?
** You are now Level 4! **
you don’t need to add the face manually — as long as it’s a classic 2D face
well if its 3d face?
so what is everything i need to add manually
i am noob in this lol
3D faces (dynamic heads) need to be added manually using InsertService, just like dynamic heads — HumanoidDescription.Face won’t apply them.
You only need to manually add dynamic heads and dynamic (3D) faces using InsertService. Everything else like classic heads, faces, limbs, and accessories works fine with HumanoidDescription.
oh okay thanks bro
np