It's where if the part is transparent, it does no damage, but if it's opaque, it kills you instantly. I don't know what I did wrong.
while true do
wait(10)
script.Parent.Transparency = 1
wait(10)
script.Parent.Transparency = 0
function onTouched (part)
if part.Transparency == 0 then
local h = script.Parent.Parent:findFirstChild ("Humanoid")
h.Health = 0
end
end
end
script.Parent.Touched:connect(onTouched)

5 comments
Trying putting the while loop in another script. While you can get this working in one script if you tried hard enough, it would just be easier having two separate scripts...
Alright. Thanks. c:
Still doesn't kill.
Capitalization issue...FindFirstChild(). You did not capitalize the 'f' in First
Oh. Thanks! :)