|
| 13 Jun 2012 10:46 AM |
t = game.Workspace.TestDummie1
t2 = game.Workspace.TestDummie2
t3 = game.Workspace.TestDummie3
if t.Humanoid.Health == 0 or t2.Humanoid.Health == 0 or t3.Humanoid.Health == 0 then d3 = game.Workspace.Door3 d3.Transparency = 1 d3.CanCollide = false local p = Instance.new("Message") p.Parent = Workspace p.Text = "Grenade room unlocked!!" wait(5) p.Remove() end this wont work when i kill any of these test dummies |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 13 Jun 2012 10:51 AM |
function Grenade() d3 = Workspace.Door3 d3.Transparency = 1 d3.CanCollide = false local p = Instance.new("Message", Workspace) p.Text = "Grenade room unlocked!!" wait(5) p:Destroy() d3.Transparency = 0 d3.CanCollide = true end
for i = 1, 3 do Workspace['TestDummie' .. i].Humanoid.Died:connect(Grenade) end
Maybe? |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2012 10:53 AM |
| i have read this script and i think it might work. |
|
|
| Report Abuse |
|
|
| |
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 13 Jun 2012 10:58 AM |
| Are you getting any output? |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2012 11:01 AM |
it says
11:00:16 - TestDummie1 is not a valid member of Workspace 11:00:16 - Script "Workspace.door!! opener", Line 16 11:00:16 - stack end |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Jun 2012 11:13 AM |
Um... is TestDummie1 inside the Workspace...?
~Let the Flame Wars begin! And may the odds NEVER be in your favor!~ |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2012 11:15 AM |
| yes it is. i dotn know why its not working. |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 13 Jun 2012 12:26 PM |
| Are you sure you wrote it correctly? |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2012 12:29 PM |
| Spec, nice scripting. Perfect efficiency. |
|
|
| Report Abuse |
|
|