of     1   

rudolph101
#59405868Sunday, December 11, 2011 12:04 PM GMT

I'm making a script, I've been trying to do it since yesterday. And I can't seem to do it. So can somebody please help me. I want a model of a ghost to disappear and reappear. That was working fine. Then I wanted it to kill if the transparency was 0.9 or under. And I want the script to continue to go for ever. And this is what I ended up with. But it doesn't work. ghost = script.Parent function onTouch(hit)--Anonymous functions are better but still... if ghost.Transparency =<.9 then hit.Parent.Humanoid.Health = 0 end end script.Parent.Touched:connect(onTouch) while 1+1 == 2 do wait() ghost.Transparency = 1 wait(3) ghost.Transparency = 0.9 wait(0) ghost.Transparency = 0.8 wait(0) ghost.Transparency = 0.7 wait(0) ghost.Transparency = 0.6 wait(0) ghost.Transparency = 0.5 wait(0) ghost.Transparency = 0.4 wait(3) ghost.Transparency = 0.5 wait(0) ghost.Transparency = 0.6 wait(0) ghost.Transparency = 0.7 wait(0) ghost.Transparency = 0.8 wait(0) ghost.Transparency = 0.9 wait(0) end Can somebody help me here?
soccaboy17
#59405928Sunday, December 11, 2011 12:09 PM GMT

Output?
rudolph101
#59405970Sunday, December 11, 2011 12:12 PM GMT

Oh yes forgot to say. Now the ghost doesn't disappear at all. It doesn't kill. And it says nothing in output.
soccaboy17
#59406096Sunday, December 11, 2011 12:21 PM GMT

ghost = script.Parent function onTouch(hit)--Anonymous functions are better but still... if ghost.Transparency <= 0.9 then hit.Parent.Humanoid.Health = 0 end end script.Parent.Touched:connect(onTouch) while 1+1 == 2 do wait() ghost.Transparency = 1 wait(3) ghost.Transparency = 0.9 wait(0) ghost.Transparency = 0.8 wait(0) ghost.Transparency = 0.7 wait(0) ghost.Transparency = 0.6 wait(0) ghost.Transparency = 0.5 wait(0) ghost.Transparency = 0.4 wait(3) ghost.Transparency = 0.5 wait(0) ghost.Transparency = 0.6 wait(0) ghost.Transparency = 0.7 wait(0) ghost.Transparency = 0.8 wait(0) ghost.Transparency = 0.9 wait(0) end Also your wait time is 0 so basically it will go to the transparency of 0.4 then back to 0.9...without you being able to really see.
rudolph101
#59406273Sunday, December 11, 2011 12:31 PM GMT

It just says "Disconnected event because of exception" after I walk into it.
rudolph101
#59407346Sunday, December 11, 2011 1:20 PM GMT

Bump?

    of     1