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 » Scripters
Home Search
 

Re: How would I make a mine?

Previous Thread :: Next Thread 
KenjiMatsumura is not online. KenjiMatsumura
Joined: 01 Dec 2013
Total Posts: 195
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 is not online. 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
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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