So i am trying to make the hair turn full transparent but it is not turning transparent how can i fix
local DestroyHair = {}
function DestroyHair:Destroy(Char)
for i,v in pairs(Char:GetChildren()) do
if v:IsA("Accessory") then
if v:FindFirstChild("Handle") then
v.Transparency = 1
end
end
end
end
return DestroyHair
local DestroyHair = {}
function DestroyHair:Destroy(Char)
for i,v in pairs(Char:GetChildren()) do
if v:IsA("Accessory") then
if v:WaitForChild("Handle") then
v.Handle.Transparency = 1
end
end
end
end
return DestroyHair
```
local DestroyHair = {}
function DestroyHair:Destroy(Char)
for i,v in pairs(Char:GetDescendants()) do
if v:IsA("Accessory") then
v:Destroy()
end
end
end
return DestroyHair
game.Players.CharacterAdded:Connect(function(character)
--Code from the game.Players.Character added inside of this insteal of the game.playersadded function
end)
local DestroyHair = {}
function DestroyHair:Destroy(Char)
print("destroy hair module line 2 ranned")
for i,v in pairs(Char:GetChildren()) do
if v:IsA("Accessory") then
print("destroy hair module line 6 ranned")
if v:WaitForChild("Handle") then
print("destroy hair module line 10 ranned")
v.Handle.Transparency = 1
print("destroy hair module line 12 ranned")
end
end
end
end
return DestroyHair