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 » Roblox » All Things ROBLOX
Home Search
 

Re: Explosion upon touching brick?

Previous Thread :: Next Thread 
superbrick213 is not online. superbrick213
Joined: 09 Sep 2012
Total Posts: 188
26 Nov 2016 11:29 PM
I don't know how to do this. It's totally out of my league, and I need it for my project. Anybody mind helping?


Report Abuse
superbrick213 is not online. superbrick213
Joined: 09 Sep 2012
Total Posts: 188
26 Nov 2016 11:32 PM
Project link: https://www.roblox.com/games/200937524/Adventure-Orb-3-WIP


Report Abuse
superbrick213 is not online. superbrick213
Joined: 09 Sep 2012
Total Posts: 188
27 Nov 2016 12:07 AM
bump


Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
27 Nov 2016 12:08 AM
Go to the scripting sub-forum or look it up on the scriptinghelpers website.


Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
27 Nov 2016 12:09 AM
wait(0.1)
function destroy(hit)
Boom = Instance.new("Explosion")
Boom.Parent = game.Workspace
Boom.Position = hit.Position
wait(1)
Boom:Remove()
end

script.Parent.Touched:connect(destroy)


Report Abuse
hungryrandomboi is not online. hungryrandomboi
Joined: 19 Aug 2010
Total Posts: 1949
27 Nov 2016 12:10 AM
Pretty sure there is a free model out there somewhere that you can use... but finding it is the hard part...
Just make sure you edit the script a little and do some editing of the brick so nobody knows it's free models.
Advice from a guy with a free modelled game with 44k+ visits
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
27 Nov 2016 12:10 AM
You're welcome.

Explodes the player when they touch a part, put the script into the part.


Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
27 Nov 2016 12:11 AM
You could also use this:

function onTouched(hit)
local e = Instance.new("Explosion")

e.BlastRadius = 15 --You may change this to whatever you'd prefer

e.BlastPressure = 100000 --You may change this to whatever you'd prefer

e.Parent = game.Workspace

e.Position = script.Parent.Position
end

script.Parent.Touched:connect(onTouched)


Report Abuse
hungryrandomboi is not online. hungryrandomboi
Joined: 19 Aug 2010
Total Posts: 1949
27 Nov 2016 12:12 AM
That would not only destroy players, but unanchored parts too, you should set it to only destroy humanoids
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
27 Nov 2016 12:14 AM
It was just destroy a player, not the part


Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
27 Nov 2016 12:14 AM
The part should be anchored, yes.


Report Abuse
jack190 is not online. jack190
Joined: 22 Dec 2007
Total Posts: 931
27 Nov 2016 12:16 AM
go to the scripting sub forum

they know alot more


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • 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