I know how to insert a hat, and parent it to a Character. But, with NPCs, or just normal models, the Hat doesn't position correctly, and isn't visible. Tips?
1 | game:GetService( "InsertService" ):LoadAsset( 221290585 ):GetChildren() [ 1 ] .Parent = game.Workspace.Model |
Thats weird.... it might be because of the humanoid...
It worked for me...
Heres a link to what I did.
http://www.roblox.com/For-Shawnyg-item?id=222610574
Hehe, If you could't get it before, I made it free/Get-able now.
There is a function on the humanoid called AddAccessory
this function can help alot if you want to insert a hat into a NPC or a player.
Something like this:
1 | local hat = game:GetService( "InsertService" ):LoadAsset( 221290585 ):GetChildren() [ 1 ] |
2 | script.Parent.Humanoid:AddAccessory(hat) |
You must define the Humanoid
first before inserting a hat.