|
| 02 Apr 2012 08:32 AM |
For my game I'm making, there are NPCs (as it is a RPG) that have to have hats. Whenever I put a hat onto the NPC using the fakehead welding script*, it welds it to the head, yes, but the top of the head is poking out of the hat.
What I need to know, is how to make it so that it won't poke out of the top of the head. Anyone?
* local weld = Instance.new("Weld") weld.Parent = script.Parent.Head weld.Part0 = script.Parent.Head weld.Part1 = script.Parent.FakeHead
|
|
|
| Report Abuse |
|
|
| 02 Apr 2012 08:40 AM |
Add this:
weld.C1 = weld.C1 * CFrame.new(0, 0.1, 0)
If the hat is too high, make the 0.1 smaller and vice versa. |
|
|
| Report Abuse |
|
| |