Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Custom hair comes off my head when I touch other player? HELP!!!

Asked by 7 years ago

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.

01local acc = Instance.new("Accessory", char.Head)
02acc.Name = "SSJHair"
03local handle = Instance.new("Part", char.Head.SSJHair)
04handle.Name = "Handle"
05handle.CanCollide = false
06handle.BrickColor = BrickColor.new("Lime green")
07handle.Transparency = 1
08handle.Material = "Neon"
09local weld = Instance.new("Weld", handle)
10weld.Name = "AccessoryWeld"
11weld.Part0 = handle
12weld.Part1 = char.Head
13weld.C0 = CFrame.new(0, -0.5, 0)
14local mesh = Instance.new("SpecialMesh", handle)
15mesh.MeshId = "rbxassetid://430344159"
View all 25 lines...

1 answer

Log in to vote
0
Answered by
Andorks 23
7 years ago
Edited 7 years ago

After the hair is put on the head, be sure to disable the script.

01local acc = Instance.new("Accessory", char.Head)
02acc.Name = "SSJHair"
03local handle = Instance.new("Part", char.Head.SSJHair)
04handle.Name = "Handle"
05handle.CanCollide = false
06handle.BrickColor = BrickColor.new("Lime green")
07handle.Transparency = 1
08handle.Material = "Neon"
09local weld = Instance.new("Weld", handle)
10weld.Name = "AccessoryWeld"
11weld.Part0 = handle
12weld.Part1 = char.Head
13weld.C0 = CFrame.new(0, -0.5, 0)
14local mesh = Instance.new("SpecialMesh", handle)
15mesh.MeshId = "rbxassetid://430344159"
View all 26 lines...
0
That would work, except for the fact that what I put down is only part of the script. Disabling the script would disable the whole entire thing I was creating and you couldn't use it ever again. starwars5251977 48 — 7y
0
Not if you use it correctly. Andorks 23 — 7y
Ad

Answer this question