so I have a script that is supposed to make you invisible if you touch it but it just works one time and then I have to disable it and enable it again please help. Here's the script:
function onTouched(part)
part.Transparency = 1
h = part.Parent:findFirstChild("Left Leg")
if h ~= nil then
h.Transparency = 1
x = part.Parent:findFirstChild("Right Leg")
if x ~= nil then
x.Transparency = 1
d = part.Parent:findFirstChild("Right Arm")
if d ~= nil then
d.Transparency = 1
c = part.Parent:findFirstChild("Left Arm")
if c ~= nil then
c.Transparency = 1
a = part.Parent:findFirstChild("Torso")
if a ~= nil then
a.Transparency = 1
l = part.Parent:findFirstChild("Head")
if l ~= nil then
l.Transparency = 1
l.face:Remove()
end
end
end
end
end
end
end
script.Parent.Touched:connect(onTouched)
Please help! |