of     1   

tik800
#45865008Wednesday, April 20, 2011 9:57 PM GMT

I need a script that If this humanoid dies (the terrorist) then disable a lava brick. The lava bricks script. I tried If game.workspace.terrorist1.health <= 0 then Script.disable = true End This doesn't work.
JJ5xdamian
#45865408Wednesday, April 20, 2011 10:02 PM GMT

I'm not being mean or anything but you should post this on the "Scripting Helpers"Forum.
Buddy31442
#45866598Wednesday, April 20, 2011 10:20 PM GMT

Hmm. Since the Terrorist is dead, his health will be at 0. I'm no scripting expert, but try eliminating the "<" and see what happens. I have a few other thoughts, but see if that works. This is the alt of an '07er. :D
DarkAlex174
#45868875Wednesday, April 20, 2011 10:53 PM GMT

while true do wait() If game.workspace.terrorist1.health <= 0 then Script:Remove End That will check if his health is at 0 with a while loop.
DarkAlex174
#45868946Wednesday, April 20, 2011 10:54 PM GMT

while true do wait() If game.workspace.terrorist1.health <= 1 then Script:Remove End There.
DarkAlex174
#45869001Wednesday, April 20, 2011 10:55 PM GMT

while true do wait() If game.workspace.terrorist1.health == 0 then Script:Remove End Lol sorry for triple post. :P
smurf279
#45872136Wednesday, April 20, 2011 11:49 PM GMT

Its not "If" its "if", "end" not "End", "Workspace" not "workspace"
pauljkl
#45872345Wednesday, April 20, 2011 11:53 PM GMT

Insert into terrorist model script.Parent.Humanoid.Died:connect(function() script.Parent.ScriptName:remove() end)
1r2o
#45873268Thursday, April 21, 2011 12:07 AM GMT

Well, what I would do. I would group the Terrorist and the Lava brick. Then: while true do wait() if script.Parent.Humanoid.Health = 0 then wait() script.Parent.Parent.Lava.KillScript:remove() end end But, the lava would never be able to kill again. Btw, this would go inside the Terrorist.

    of     1