generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Kill script

Previous Thread :: Next Thread 
oomcommander is not online. oomcommander
Joined: 03 Oct 2010
Total Posts: 61
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 is not online. 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
oomcommander is not online. oomcommander
Joined: 03 Oct 2010
Total Posts: 61
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
oomcommander is not online. oomcommander
Joined: 03 Oct 2010
Total Posts: 61
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
Browiebrownboy is not online. Browiebrownboy
Joined: 13 Dec 2009
Total Posts: 3131
29 Apr 2013 09:14 AM
Bawmp.
:(
Report Abuse
lieng556 is not online. 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 is not online. 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
coolhottien is not online. coolhottien
Joined: 05 Nov 2008
Total Posts: 2798
08 May 2013 09:02 AM
Yraaah
Report Abuse
OKevinO is not online. 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
oomcommander is not online. oomcommander
Joined: 03 Oct 2010
Total Posts: 61
11 May 2013 12:37 PM
Doesn't work.
Report Abuse
oomcommander is not online. oomcommander
Joined: 03 Oct 2010
Total Posts: 61
11 May 2013 12:38 PM
Probably doing it wrong though.
Report Abuse
HAVTO is not online. 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
oomcommander is not online. oomcommander
Joined: 03 Oct 2010
Total Posts: 61
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image