- NpcLooks: 확인된 아이템 표(assets/npc_assets.md), 서버 시작 때 외형 템플릿을 만들어 두고 복제 - 화면 UI 통합 테스트를 새 화면에 맞게 다시 씀(서버 로직은 tests/cloud/server.luau) - GUI 미리보기를 장면 6개씩 나눠 뽑기(5분 제한·4MB 출력 제한) - 서버 통합 테스트 1416개, 화면 통합 테스트 379개 통과 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 KiB
15 KiB
손님 NPC 외형 에셋 (2026-10-14 확인)
결론: Option A(HumanoidDescription)로 충분합니다. 사람·동물 모두 R15 그대로라 기존 걷기·대기·앉기 애니메이션을 같이 씁니다. Option B(Creator Store 동물 모델)는 Luau Execution에서 남의 모델을 불러올 권한이 없어 막혔습니다(아래 참고). 직접 Part로 동물을 만들 필요는 없습니다.
확인 방법
- 확인 스크립트:
python3 tools/cloud.py run tools/npc_verify_avatars.luau --out assets/npc_animals.rbxm(로블록스 서버, 최근 저장 버전에서Players:CreateHumanoidModelFromDescription(desc, Enum.HumanoidRigType.R15)) - 아래 표의 아이템 73개를 하나씩 기본 몸에 붙여 봄: 73개 모두 적용(장신구·Shirt·Pants 생성, Head 메시 교체 확인)
- 사람 무작위 조합 6개 + 동물 프리셋 11개 = 17개 모두 생성 성공. 각 모델: R15 관절 15개 이름 모두 있음, 스크립트 0개(Animate 제거 뒤), 높이 4.8
6.3, HipHeight 1.922.19 - 애니메이션 3개(walk 507777826 / idle 507766388 / sit 2506281703)가 모든 모델의 Animator에서 로드됨(Length 0.67 / 3.77 / 0.92, IsPlaying true)
- 관절은 새 아바타 관절(
AnimationConstraint,IsKinematic=true)입니다. Luau Execution은 시뮬레이션을 돌리지 않아(RunService:IsRunning()=false, 떨어지는 블록도 그대로) 관절이 실제로 움직이는지는 서버 실행으로 확인 못 함 → Studio 플레이 테스트에서 한 번 눈으로 확인하세요. 몸 모양만 바꾼 R15라 일반 아바타와 같은 조건입니다. - 아이템 소유는 필요 없음: 유료 아이템(예: Pink Pigtails, Unicorn Beanie)도 서버에서 그대로 붙습니다.
- 모든 ID는 로블록스 제작(Creator Id 1)입니다.
MarketplaceService:GetProductInfo와 카탈로그 검색(CreatorTargetId=1)으로 확인했습니다.
중요 발견
- 클래식 얼굴(
Face속성)은 이제 안 보입니다. 기본 머리가 얼굴이 그려진 다이내믹 헤드라서,Face = 144075659(Smile)를 넣어도 머리 텍스처가 그대로이고 Decal도 생기지 않습니다. 얼굴을 바꾸려면Head에 다이내믹 헤드 ID를 넣으세요(FACE_HEADS). 피부색은HeadColor등 description 색으로 줍니다. - 장신구는
Handle.AccessoryRigidConstraint로 붙습니다(Weld 아님). 위치는 모델을 Workspace에 넣고 한 프레임(Heartbeat) 지나야 맞춰집니다. - 동물 머리 모자 중 Beary Cute(28998435)·Cute Fox(61773267)는 머리 위에 얹히는 모양입니다(아랫면이 머리 아래보다 0.93 위).
HatAttachment.Position을 그만큼 올리고Humanoid:AddAccessory로 다시 붙이면 목 위치로 내려갑니다(확인: 차이 0.93 → 0). 다른 동물 머리는 처음부터 머리 전체를 덮습니다(차이 −0.09~0.15). - 모델 안에 플레이어용
AnimateLocalScript가 들어 있습니다. 서버 NPC에서는 돌지 않으니 지우면 됩니다. - 지금
Npc.luau의colorize는 부위 이름으로 색을 덮어씁니다. 동물 몸(텍스처가 있는 메시)과 옷 입은 사람에게는 쓰지 말고, 색은 description의*Color로만 주세요. - 생성 시간: 처음 1개 약 1초, 그다음은 0.02~0.35초. 서버 시작 때 종류별 템플릿을 만들어 두고
Clone하는 지금 방식이 맞습니다.
Luau 데이터 표
-- 사람: 로블록스 제작 머리카락(HairAccessory, 문자열로 넣음). 7193…/9244…는 레이어드 머리카락(자동으로 머리에 맞춰짐)
local HAIR = {
63690008, -- Pal Hair
451221329, -- True Blue Hair
376526888, -- Straight Blonde Hair
376524487, -- Blonde Spiked Hair
376548738, -- Brown Charmer Hair
376527350, -- Black Ponytail
451220849, -- Lavender Updo
62234425, -- Brown Hair
2956239660, -- Belle Of Belfast Long Red Hair
3814476174, -- Colorful Braids
24910539, -- Pink Pigtails
7193442167, -- Pony Tail - Black
9244095135, -- Pony Tail - Blonde
6993754725, -- Straight Bangs - Black
7193448258, -- Wavy Middle Part - Brown
9243987340, -- Short and Sleek - Blonde
7193450455, -- Curly Afro - Black
7193452166, -- Short Curls - Black
9244148336, -- Braided Hair - Blonde
430063008, -- Strawberry Ice Cream Hair
727320877, -- Long Pastel Hair
}
-- 어린이용 귀여운 모자(HatAccessory, 35% 정도만 씌우기 추천)
local HATS = {
1028606, -- Red Baseball Cap
607702162, -- Roblox Baseball Cap
321570512, -- Chill Cap
10911990, -- Propeller Beanie
67291394, -- Unicorn Beanie
3756496643, -- Pizza Time Cap
100932329, -- Pink Flower Crown
150337770, -- Spring Crown of Flowers
118280079, -- Narwhal Beanie
215724779, -- Robot Beanie
116778296, -- Wide-brimmed Straw Cap
833771553, -- Starbling Beanie
3756447657, -- Lil' Kitty Cap
439943629, -- Sleepy Mouse Cap
1536057124, -- Spring Bunny Headband
}
-- 클래식 옷(Shirt / Pants), 모두 무료
local SHIRTS = {
144076358, -- Blue and Black Motorcycle Shirt
607785314, -- ROBLOX Jacket
398633584, -- Denim Jacket with White Hoodie
144076436, -- Grey Striped Shirt with Denim Jacket
398634295, -- Pastel Starburst Top with Gray Jacket
3670737444, -- Roblox Shirt - Simple Pattern
382538059, -- Green Jersey
398635081, -- Blue Plaid Shirt
382537702, -- Teal Shirt
382537085, -- I <3 Pizza Shirt
382538295, -- Guitar Tee with Black Jacket
4047884939, -- My Favorite Pizza Shirt
4047884046, -- Guitar Tee with Black Jacket
4047886060, -- Purple and Teal Top
}
local PANTS = {
144076760, -- Dark Green Jeans
398634487, -- Beautiful You Jeans
398633812, -- Black Jeans with White Shoes
398635338, -- Ripped Skater Pants
382537806, -- Jean Shorts
382538503, -- Black Jeans with Sneakers
382537569, -- Black Jeans
382537950, -- Jean Shorts with White Shoes
}
-- 얼굴 = 다이내믹 헤드(Head). 앞 7개 무료, 뒤 8개 유료(소유 불필요)
local FACE_HEADS = {
10725626210, -- Woman Face
10725826963, -- Man Face
11308945948, -- Check It
15938951781, -- Silly Fun
10687288296, -- Dylan Default
10638267973, -- Stevie Standard
10723855306, -- Devon Default
13692975981, -- Friendly Smile
11163789916, -- The Winning Smile
12954264879, -- Joyful Smile
13682064263, -- Happy :D
130433936882245, -- Super Super Happy Face
11159990982, -- Classic Female Face
11180212350, -- Classic Male Face
16042049101, -- Happy Wink
}
-- 동물: body = {Torso, LeftArm, RightArm, LeftLeg, RightLeg}, colors = {Head, Torso, LeftArm, RightArm, LeftLeg, RightLeg}
-- hideHead: 동물 머리 모자가 사람 머리를 다 덮으므로 Head를 투명하게. lowerHat: 모자를 목까지 내림(위 3번)
local function rgb(r, g, b) return Color3.fromRGB(r, g, b) end
local W, G = rgb(245, 245, 245), rgb(163, 162, 165)
local ANIMALS = {
-- 공식 번들 몸(Penguin 284) + Tokyokhaos Penguin 머리
{ name = "Penguin", body = { 46358991, 46359095, 46359040, 46359181, 46359241 }, hat = "15967866", colors = { W, W, W, W, W, W }, hideHead = true },
-- 공식 번들 몸(Bear Suit 309) + Beary Cute 머리
{ name = "Bear", body = { 27132957, 27133013, 27132990, 27133040, 27133055 }, hat = "28998435", lowerHat = true, hideHead = true,
colors = { rgb(160, 110, 80), rgb(160, 110, 80), rgb(110, 75, 55), rgb(110, 75, 55), rgb(110, 75, 55), rgb(110, 75, 55) } },
-- 공식 번들 그대로(Polar Bear 195)
{ name = "PolarBear", body = { 137715759, 137715036, 137715073, 137715120, 137715151 }, hat = "137714793", hideHead = true,
colors = { rgb(248, 248, 248), rgb(248, 248, 248), rgb(248, 248, 248), rgb(248, 248, 248), rgb(248, 248, 248), rgb(248, 248, 248) } },
-- 공식 번들 그대로(Blue Collar Cat 182)
{ name = "Cat", body = { 146176562, 146176342, 146176447, 146176406, 146176511 }, hat = "146176716", colors = { G, G, G, G, G, G }, hideHead = true },
-- 공식 번들 그대로(White Collar Dog 11)
{ name = "Dog", body = { 1796148633, 1796137813, 1796141971, 1796143895, 1796146180 }, hat = "1796135151", colors = { G, G, G, G, G, G }, hideHead = true },
-- Bear Suit 몸을 흑백으로 + Panda 머리(27369187)
{ name = "Panda", body = { 27132957, 27133013, 27132990, 27133040, 27133055 }, hat = "27369187", hideHead = true,
colors = { rgb(242, 242, 242), rgb(242, 242, 242), rgb(30, 30, 30), rgb(30, 30, 30), rgb(30, 30, 30), rgb(30, 30, 30) } },
-- 기본 몸 + Cute Fox 머리 + 주황 꼬리 + 옷
{ name = "Fox", hat = "61773267", lowerHat = true, tail = "187846604", shirt = 382537702, pants = 382537806, hideHead = true,
colors = { rgb(235, 120, 40), rgb(235, 120, 40), rgb(235, 120, 40), rgb(235, 120, 40), rgb(250, 240, 230), rgb(250, 240, 230) } },
-- 기본 몸 + Sleepy Mouse Cap(머리 전체) + 옷
{ name = "Mouse", hat = "439943629", shirt = 398635081, pants = 144076760, hideHead = true,
colors = { rgb(170, 185, 215), rgb(170, 185, 215), rgb(170, 185, 215), rgb(170, 185, 215), rgb(170, 185, 215), rgb(170, 185, 215) } },
-- "동물 분장 사람" 가벼운 버전: 동물 얼굴 다이내믹 헤드 + 귀 + 꼬리 + 옷(사람 얼굴 모양이라 동물 느낌은 약함)
{ name = "Bunny", head = 119665103921086, ears = "1080949", tail = "738679517", shirt = 4047886060, pants = 382537950, colors = { W, W, W, W, W, W } },
{ name = "Kitty", head = 82082995456115, ears = "1374269", tail = "187846604", shirt = 382537085, pants = 398634487,
colors = { rgb(250, 200, 140), rgb(250, 200, 140), rgb(250, 200, 140), rgb(250, 200, 140), rgb(250, 200, 140), rgb(250, 200, 140) } },
{ name = "Puppy", head = 138526270057654, ears = "11142487", shirt = 144076436, pants = 382538503,
colors = { rgb(220, 180, 130), rgb(220, 180, 130), rgb(220, 180, 130), rgb(220, 180, 130), rgb(220, 180, 130), rgb(220, 180, 130) } },
}
local SKIN = { rgb(255, 220, 190), rgb(240, 200, 160), rgb(205, 160, 120), rgb(150, 105, 75) }
추천 비율: 사람 75%, 동물 25%(Penguin·Bear·PolarBear·Cat·Dog·Panda·Fox·Mouse를 주로, Bunny·Kitty·Puppy는 가끔).
빼 둔 후보(이유): Panda Monk 371·Grizzly Warrior 370·Guardian Lion 599(전사·무서운 얼굴), Fancy Mr. Fox 404(Rthro라 키가 큼, HipHeight 2.81~3.29), Cute Kitty·Spring Bunny·Puppy·Raccoon·Lion 다이내믹 헤드는 회색 사람 머리에 수염만 그린 모양이라 단독 동물로는 약함, 남이 만든 UGC 미니 번들(내려갈 수 있고 SurfaceAppearance 포함).
불러오는 코드 (서버에서 확인한 순서 그대로)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local function setColors(d: HumanoidDescription, c: { Color3 })
d.HeadColor, d.TorsoColor, d.LeftArmColor, d.RightArmColor, d.LeftLegColor, d.RightLegColor = c[1], c[2], c[3], c[4], c[5], c[6]
end
local function humanDesc(rng: Random): HumanoidDescription
local d = Instance.new("HumanoidDescription")
d.HairAccessory = tostring(HAIR[rng:NextInteger(1, #HAIR)])
if rng:NextNumber() < 0.35 then
d.HatAccessory = tostring(HATS[rng:NextInteger(1, #HATS)])
end
d.Shirt = SHIRTS[rng:NextInteger(1, #SHIRTS)]
d.Pants = PANTS[rng:NextInteger(1, #PANTS)]
d.Head = FACE_HEADS[rng:NextInteger(1, #FACE_HEADS)]
local s = SKIN[rng:NextInteger(1, #SKIN)]
setColors(d, { s, s, s, s, s, s })
local h = 0.85 + rng:NextNumber() * 0.15 -- 어린이~어른 키
d.HeightScale, d.WidthScale, d.DepthScale, d.HeadScale = h, 0.9, 0.9, 1
return d
end
local function animalDesc(a): HumanoidDescription
local d = Instance.new("HumanoidDescription")
if a.body then
d.Torso, d.LeftArm, d.RightArm, d.LeftLeg, d.RightLeg = a.body[1], a.body[2], a.body[3], a.body[4], a.body[5]
end
if a.head then
d.Head = a.head
end
d.HatAccessory = a.hat or a.ears or ""
d.WaistAccessory = a.tail or ""
d.Shirt = a.shirt or 0
d.Pants = a.pants or 0
setColors(d, a.colors)
return d
end
-- 템플릿 하나 만들기(서버 시작 때 종류마다 1번). 실패하면 nil → 기존 블록 NPC로 대신.
local function buildTemplate(d: HumanoidDescription, a): Model?
local ok, m = pcall(Players.CreateHumanoidModelFromDescription, Players, d, Enum.HumanoidRigType.R15)
if not ok then
warn("[Bunsik] NPC 외형 생성 실패", m)
return nil
end
local animate = m:FindFirstChild("Animate")
if animate then
animate:Destroy()
end
m:PivotTo(CFrame.new(0, 500, 0)) -- 맵 밖 높은 곳(아래쪽은 FallenPartsDestroyHeight에 걸릴 수 있음)
local root = m:FindFirstChild("HumanoidRootPart") :: BasePart
root.Anchored = true
m.Parent = workspace -- 장신구 위치가 맞춰지려면 Workspace 안에서 한 프레임 필요
RunService.Heartbeat:Wait()
if a then
local head = m:FindFirstChild("Head") :: BasePart
local hum = m:FindFirstChildOfClass("Humanoid") :: Humanoid
if a.lowerHat then
for _, acc in m:GetChildren() do
if acc:IsA("Accessory") and acc.AccessoryType == Enum.AccessoryType.Hat then
local h = acc:FindFirstChild("Handle") :: BasePart
local att = h:FindFirstChild("HatAttachment") :: Attachment?
local drop = (h.Position.Y - h.Size.Y / 2) - (head.Position.Y - head.Size.Y / 2)
if att and drop > 0.1 then
att.Position += Vector3.new(0, drop, 0)
acc.Parent = nil
hum:AddAccessory(acc) -- 다시 붙여야 바로 반영됨
end
end
end
end
if a.hideHead then
head.Transparency = 1
end
end
m.Parent = nil
return m
end
-- 이후: template:Clone() → (colorize 하지 말 것) → 지금 Npc.spawn 의 고정·트윈·Animator 처리 그대로
Option B (Creator Store 동물 모델) 결과
AssetService:LoadAssetAsync,InsertService:LoadAsset둘 다 남이 만든 무료 모델 12개(Low Poly Dog/Panda, Cute Penguin, Animal Pack 등)에서User is not authorized to access Asset.로블록스가 만든 에셋(1374269 Kitty Ears)은 둘 다 성공.- DECISIONS.md 0-1에 적힌
AllowInsertFreeAssets는 스크립트에서Workspace의 멤버가 아닙니다(읽기·쓰기 모두 오류). 그래서 Luau Execution으로 남의 무료 모델을 가져오는 길은 지금 막혀 있습니다. 게임 주인 계정이 Toolbox에서 그 모델을 먼저 받아 두면 될 수도 있지만 확인하지 않았습니다. - 대신 .rbxm 내보내기는 됩니다.
SerializationService:SerializeInstancesAsync({ ... })로 buffer를 만들고 스크립트가return { BinaryOutput = buf, ReturnValues = { ... } }를 돌려주면cloud.py run … --out 파일로 받습니다(다른 값을 함께 return하면 "Script must return exactly one table" 오류). assets/npc_animals.rbxm(199 KB,<roblox!바이너리): 위 동물 프리셋 11개 + 사람 예시 1개, 모두 Anchored 해제·Animate 제거 상태. 같은 실행 안에서DeserializeInstancesAsync로 다시 읽어 12개를 확인했습니다. 게임은 실행 중에 HumanoidDescription으로 만들면 되니 필수는 아니고, 아바타 서비스가 실패할 때 쓸 예비본이나 Studio 미리보기용입니다.
도구
tools/npc_search.py— Creator Store 검색, 카탈로그(로블록스 제작) 검색, 번들 구성품 보기(공개 API)tools/npc_verify_avatars.luau— 위 표 전체 확인 +npc_animals.rbxm내보내기tools/npc_inspect_models.luau— Option B 모델 조사(지금은 권한 오류로 막힘)