Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Hair attachment is positioning wrong, is it possible to auto-fit hair to an NPC's head?

EEK IM SORRY IVE BEEN ASKING A LOT OF QUESTIONS ITS JUST THAT IVE BEEN HAVING PROBLEMS LATELY... anyway back to the topic

I have a random NPC generator that picks a random skin, a random gender, random clothing, and random hair. Everything works perfectly fine, but...since I have scaled the NPC down, the hair attachment doesn't exactly fit on the head...it's bigger and up the y axis more.

I have tried adjusting the handle's position and size when it spawns, but since each is a different type of hair, it won't exactly be the same. Is there some sort of way to auto-fit hair onto an NPC, or would you have to go through each type of hair and position it specifically for that one hair?

2 answers

✓ Accepted answer

I'm no expert on this but I can point you in the right direction;

Accessories have a lot of adjustable properties & are what you're going to use for hats instead of manually trying to set the CFrame of a mesh onto the player.

https://developer.roblox.com/en-us/api-reference/class/Accessory

Very sorry for the non descriptive response!

1 comment

0

Thank you but I have looked at the link and none of them talk about the size. Is CFrame just Coordinate Frame or does it count as size as well?

OH NVM I FIXED IT MYSELF.

I had to convert the hat into a meshpart rather than just using a mesh, and then attempt to adjust the size from there. OOF I'm dumb lol

This discussion is preserved as it was. New answers, comments, and votes are closed.