e = script.Parent:GetChildren()
for i,v in pairs(e) do
v.Touched:connect(function(hit)
if hit.Parent.Humanoid ~= nil
then v.BrickColor = BrickColor.new("Really black")
for i=1,10 do
wait()
print(i)
v.Transparency = v.Transparency - .1
end
end
end)
end
-- everything works but the transparency.
im trying to make it that when a part in a model is touched, it turns black and goes transparent. it does go black. but the transparency loop doesnt work.

3 comments
You may also want to add a check if the item is a part, depending on where this script is located.
thank you
No problem.