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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Explosions

Previous Thread :: Next Thread 
camey25 is not online. camey25
Joined: 20 May 2010
Total Posts: 16208
19 Feb 2012 10:04 AM
You know how the terrain gets destroyed when it is hit by an explosion?
Can you do something like this but with bricks.
(I don't mean just put a wall of small bricks and leave them un-anchored)

So like a door, if it gets hit by rocket it'll explode but work otherwise?

"Don't find fault, find a remedy."
Report Abuse
niels22 is not online. niels22
Joined: 23 Jan 2009
Total Posts: 700
19 Feb 2012 11:00 AM
So, you mean remove bricks when hit by an explosion?
Report Abuse
camey25 is not online. camey25
Joined: 20 May 2010
Total Posts: 16208
19 Feb 2012 11:39 AM
^ Pretty much, but after more than 1 hit.

"Don't find fault, find a remedy."
Report Abuse
niels22 is not online. niels22
Joined: 23 Jan 2009
Total Posts: 700
20 Feb 2012 08:52 AM
That will require either 2:

1. The parts have a "Health" value in them
2. You make a table for parts that got "hit"

Example of 2. is here:
hit = {}
Explosion.Hit:connect(function (instance)
for i = 1,#hit do
if hit[i] == instance then
instance:Destroy()
else
table.insery(hit,instance) --Did I mess up here? I always forget order >_<
end
end
end)
Report Abuse
camey25 is not online. camey25
Joined: 20 May 2010
Total Posts: 16208
20 Feb 2012 03:35 PM
^ Worked it out, thanks anyway.


►C25 - The next Explosive◄
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