So i have this code where i want to spawn npcs, and i want them to look the same as a random friend.
while true do
if Spawned == false then
Spawned = true
local Dummy = NpcTemplate:Clone()
local hrp = Dummy:WaitForChild("HumanoidRootPart")
hrp.CFrame = SpawnPart.CFrame - Vector3.new(0, 30, 0)
Dummy.Parent = Workspace
local UserId = RngClient.SelectRandomUserID(Players:WaitForChild("Teddy_arm"))
local Description = game.Players:GetHumanoidDescriptionFromUserId(UserId)
Dummy.Humanoid:ApplyDescription(Description)
hrp.CFrame = SpawnPart.CFrame + Vector3.new(0, 2, 0)
task.spawn(function()
MoveToTarget(Dummy, EndPart)
end)
task.wait(SpawnInterval)
else
task.wait(.05)
end
end```