|
| 12 Apr 2015 06:00 PM |
A brick that when a player steps on it, there is an explosion, their body parts fly all over the place, and any players within a 5 brick radius also die, and those within 10 are wounded. But the mine itself is not destroyed so it's reusable.
I know a touched even is needed, but I don't know how I would set the script up.
By body parts flying all over the place, I mean like when you shoot a player with a rocket launcher. |
|
|
| Report Abuse |
|
|
Jezbob
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 764 |
|
|
| 12 Apr 2015 06:04 PM |
| Instantiate an explosion in the place of the brick and make sure its anchored, then adjust the attributes of the explosion. Shouldn't be too difficult? |
|
|
| Report Abuse |
|
|
|
| 12 Apr 2015 06:05 PM |
Try messing with this event. http://wiki.roblox.com/index.php?title=API:Class/Explosion/Hit |
|
|
| Report Abuse |
|
|
Jezbob
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 764 |
|
|
| 12 Apr 2015 06:05 PM |
function boom () local explosion = Instance.new("Explosion", script.Parent) -- Enter other stuff here -- - Position -Blast radius - etc end
script.Parent.Touched:connect(boom)
Something thing that I think... |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 12 Apr 2015 06:09 PM |
local part
part on touched connect func hit local ex = instance new explosion ex position = part ex blast pressure = big num ex blast radius = whatever radius ex.hit connect func hitpart if players get player from char hitpart parent then if char pos - part pos . magnitude < somenum then kill user elseif char pos - part pos . magnitude < biggernum then deal x damage end end end end |
|
|
| Report Abuse |
|
|