|
| 28 Apr 2013 07:21 PM |
| I'm looking for someone who could make a script. The script would involve shooting a brick with 500 health, until its health is 0, when that happens, it triggers a door opening script. After 5 minutes of the door being open, the brick's health regenerates and the door closes and is ready to be breached again. (Yes, this is like WIJ's outpost Indigo II.) So if anyone could make a system that does this, or could give me a link to one that's already been done, I'd appreciate it. |
|
|
| Report Abuse |
|
|
zakary99
|
  |
| Joined: 19 Jan 2010 |
| Total Posts: 1095 |
|
|
| 28 Apr 2013 07:25 PM |
local door = while true do if script.Parent.Humanoid.Health=0 then door.CanCollide=false wait(300) script.Parent.Humanoid.Health=500 end wait() end
~You have to think like a Dinosaur to become a Dinosaur~ |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2013 07:32 PM |
| No no no, the door itself won't have health, it's a seprate brick, so when it's health becomes 0, it activates a a seperate door animation script, that opens the door |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2013 07:45 PM |
| Actually, use this, it's already built and ready to be scripted. http://www.roblox.com/Breach-System-Unscripted-item?id=114328078 |
|
|
| Report Abuse |
|
|
| |
|
lieng556
|
  |
| Joined: 18 Jan 2011 |
| Total Posts: 59 |
|
|
| 29 Apr 2013 01:13 PM |
| Hmm, well I found the old Indigo breach door so I may be able to edit it enough to work. |
|
|
| Report Abuse |
|
|
pauljkl
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 9364 |
|
|
| 29 Apr 2013 02:17 PM |
local healthBrick = script.Parent.HealthBrick
healthBrick.Humanoid.Died:connect(function()
--Open door
end) |
|
|
| Report Abuse |
|
|
| |
|
OKevinO
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1036 |
|
|
| 08 May 2013 12:39 PM |
local door = game.Workspace.MAINDOORMODEL.DOOR. while true do if script.Parent.Humanoid.Health=0 then door.CanCollide=false wait(300) script.Parent.Humanoid.Health=500 door.CanCollide = true end wait() end
you just need to identify the door in the workspace, the above script says if the brick dies, then the other door in the workspace or where every you want to identify it will open, and then the door goes on cooldown. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 May 2013 12:38 PM |
| Probably doing it wrong though. |
|
|
| Report Abuse |
|
|
HAVTO
|
  |
| Joined: 03 May 2013 |
| Total Posts: 19 |
|
|
| 11 May 2013 12:42 PM |
| game.Workspace.USERNAME.Humanoid.health=0 or game.Workspace.USERNAME.Head.Destroy() BAWS BOOM CHALACABAMVOOM |
|
|
| Report Abuse |
|
|
|
| 12 May 2013 03:21 PM |
| Or! Instead of making me sift through that scripting, you could just script this: http://www.roblox.com/Breach-System-Unscripted-item?id=114328078 And post the completed version here. |
|
|
| Report Abuse |
|
|