How to get humanoid description of a dummy but without the animation.
I think you can use Humanoid:GetAppliedDescription()
to get the dummy’s humanoid description. Not sure what you mean without the animation.
2 Likes
Because from what I know Humanoid Description also include animation right? But i just want to copy dummy’s clothes and maybe accessory without changing player animation
You can use the same method to get the player’s description. When you have that you can set the dummy’s description animation to theirs.
Here’s a script I got working that you’re welcome to make modifications to, it retains the player’s chosen animations & their package (morph). I used the “Genie” model released by Roblox for testing.
local server = game:GetService("ServerStorage")
local genie = server.Genie
local genieHumanoid = genie.Humanoid
local genieAccessories = genieHumanoid:GetAccessories()
local genieBodyColors = genie["Body Colors"]
local genieShirt = genie.Shirt
local geniePants = genie.Pants
local genieHead = genie.Head
local genieFace = genieHead.face
local run = game:GetService("RunService")
local players = game:GetService("Players")
local function onPlayerAdded(player)
local function onCharacterAdded(character)
if not player:HasAppearanceLoaded() then
player.CharacterAppearanceLoaded:Wait()
end
run.Heartbeat:Wait()
local humanoid = character:WaitForChild("Humanoid")
humanoid:RemoveAccessories()
local bodyColors = character:WaitForChild("Body Colors")
local shirt = character:FindFirstChildOfClass("Shirt") or Instance.new("Shirt")
local pants = character:FindFirstChildOfClass("Pants") or Instance.new("Pants")
local tShirt = character:FindFirstChildOfClass("ShirtGraphic") or Instance.new("ShirtGraphic")
shirt.ShirtTemplate = genieShirt.ShirtTemplate
shirt.Parent = shirt.Parent or character
pants.PantsTemplate = geniePants.PantsTemplate
pants.Parent = pants.Parent or character
local head = character:WaitForChild("Head")
local face = head:FindFirstChild("face") or Instance.new("Decal")
face.Name = face.Name or "face"
face.Texture = genieFace.Texture
face.Parent = face.Parent or head
for _, genieAccessory in ipairs(genieAccessories) do
local genieAccessoryClone = genieAccessory:Clone()
humanoid:AddAccessory(genieAccessoryClone)
end
for _, bodyPartEnumItem in ipairs(Enum.BodyPart:GetEnumItems()) do
bodyColors[bodyPartEnumItem.Name.."Color"] = genieBodyColors[bodyPartEnumItem.Name.."Color"]
end
end
player.CharacterAdded:Connect(onCharacterAdded)
end
players.PlayerAdded:Connect(onPlayerAdded)
test.rbxl (37.1 KB)
1 Like