Custom hair comes off my head when I touch other player? HELP!!!
Ok. So I made my character have custom hair, and it is an accessory with a handle in it named Handle, and in that is a mesh. I want to know - why does the hair get transferred from me to another player when I touch them? It is really annoying. Thank you - here is my code where I create the hair.
01 | local acc = Instance.new( "Accessory" , char.Head) |
03 | local handle = Instance.new( "Part" , char.Head.SSJHair) |
05 | handle.CanCollide = false |
06 | handle.BrickColor = BrickColor.new( "Lime green" ) |
07 | handle.Transparency = 1 |
08 | handle.Material = "Neon" |
09 | local weld = Instance.new( "Weld" , handle) |
10 | weld.Name = "AccessoryWeld" |
13 | weld.C 0 = CFrame.new( 0 , - 0.5 , 0 ) |
14 | local mesh = Instance.new( "SpecialMesh" , handle) |
16 | mesh.Offset = Vector 3. new( 0 , 0.5 , 0.5 ) |
17 | mesh.Scale = Vector 3. new( 6 , 6 , 6 ) |
18 | local attachment = Instance.new( "Attachment" , handle) |
19 | attachment.Name = "HairAttachment" |
20 | attachment.Position = Vector 3. new( 0 , 0.1 , - 0 ) |
21 | attachment.Axis = Vector 3. new( 1 , - 0 , 0 ) |
22 | attachment.SecondaryAxis = Vector 3. new( 0 , 1 , 0 ) |
23 | if acc:FindFirstChild( "TouchInterest" ) ~ = nil then |
24 | acc:FindFirstChild( "TouchInterest" ):Destroy() |