I recently made 24 different Humanoid Descriptions, and instead of testing each and every one of them by playing solo, I was hoping to clone a bunch of NPCs using the following code:
local dummy = game.Workspace.Dummy:Clone()
for i,v in pairs(game.ReplicatedStorage.Men:GetChildren()) do
dummy.HumanoidRootPart.CFrame = CFrame.new(-153.2, 3.4, 16.5 -(3*i))*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
dummy.Humanoid:ApplyDescription(v)
end
however, it seems as though you can only apply these traits to actual players. Is there a way to get around this?
local dummy = workspace.Dummy
local desc = script.HumanoidDescription
dummy.Humanoid:ApplyDescription(desc)
oohhh wait, I just read your script again, you are cloning a dummy, (that dummy is sitting in nil until you set its parent), then you loop through all the dummies in replicated storage, applying the description to the dummy still in nil, try
for i,v in pairs(game.ReplicatedStorage.Men:GetChildren()) do
local dummy = game.Workspace.Dummy:Clone()
dummy.Parent = workspace
dummy.Name = "notDummy" --so you don't clone this dummy for your next loop, well I guess it would be fine, but idk.
dummy.HumanoidRootPart.CFrame = CFrame.new(-153.2, 3.4, 16.5 -(3*i))*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
dummy.Humanoid:ApplyDescription(v)
end