-
I want to import a dynamic head from the catalog using it’s ID.
-
It gives me an error when trying to import it.
-
I have looked on the forum and the docs and couldn’t find anything.
I do not want to buy the head.
I want to import a dynamic head from the catalog using it’s ID.
It gives me an error when trying to import it.
I have looked on the forum and the docs and couldn’t find anything.
I do not want to buy the head.
Since it is a body part maybe try using Humanoid Description? Not sure.
I tried that and it returned an error.
What should I put in the head part, the ID of the head or what?
Yep, I’m not sure if it will work though.
I put the id in, did not work.
Can I see your code? Are there any errors?
script.Parent.Head = 967 -- script.parent is the HumanoidDescription
No errors, nothing changed.
You might have to reapply the humanoid description, I’m not sure. Also make sure 967 is actually the id of the head.
First of all, I don’t believe 967
is a real head ID. Are you completely sure that’s the actual ID?
Second of all, you have to reapply the HumanoidDescription
after making changes to it for them to actually take effect. You can do this using humanoid:ApplyDescription(script.Parent)
(in your case, script.Parent
is the HumanoidDescription).
Also, how are you parenting the script under the HumanoidDescription located under the Humanoid? That seems awfully complicated if you are doing so, and if you’re creating a new HumanoidDescription who knows where and trying that way, stop right there. Just use this script (SERVER script), put it in ServerScriptService or something:
local players = game:GetService("Players")
local function playerAdded(player)
local function characterAdded(char)
local hum = char:WaitForChild("Humanoid")
if not hum:IsDescendantOf(game) then
-- If the humanoid is parented to nil, this wont work!
hum.AncestryChanged:Wait()
end
local description = hum:WaitForChild("HumanoidDescription")
description.Head = 000000 -- Head ID here
hum:ApplyDescription(description)
end
player.CharacterAdded:Connect(characterAdded)
end
players.PlayerAdded:Connect(playerAdded)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.