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: I want a falling Part (Bomb) to explode on impact.

Previous Thread :: Next Thread 
lego911manegg is not online. lego911manegg
Joined: 10 Oct 2008
Total Posts: 5223
17 Aug 2013 12:59 AM
local bomb = Instance.new("Part")
Bomb.Name = "Bomb"
Bomb.BrickColor = BrickColor.new("Really black")
Bomb.Anchored = false
Bomb.Parent = Workspace
Bomb.Position = Vector3.new(-20.6,11.3,-10.6)

How would I modify the script?

Report Abuse
lego911manegg is not online. lego911manegg
Joined: 10 Oct 2008
Total Posts: 5223
17 Aug 2013 01:12 AM
Oh after local I changed "bomb" to "Bomb" which helps a small error I had of it not respawning at my vector3 code.
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 01:17 AM
Add an explode function that works on touch.
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 01:19 AM
bomb.Touched:connect(function(hit)
--code
--code
--your a frub
--code
--code
end)
Report Abuse
lego911manegg is not online. lego911manegg
Joined: 10 Oct 2008
Total Posts: 5223
17 Aug 2013 01:19 AM
I went to borrowing someone's explode on touch (Humanoid) brick and changed it to explode on touch for the Baseplate. I just need to make it so after it explodes it poofs away.
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 01:20 AM
bomb:destroy()

oh and then since you're special:


while true do
end
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 01:23 AM
Don't add in the while true do end unless you'd like to be crashed <3
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 01:24 AM
@Above

I would have had him do it if it weren't for you melding kids
Report Abuse
lego911manegg is not online. lego911manegg
Joined: 10 Oct 2008
Total Posts: 5223
17 Aug 2013 01:25 AM
^ True
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 01:26 AM
@Tobo

I just died.

Thank you <3
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 01:26 AM
lul

-- ps I would add a wait(.5) or sumting dere to add an effect to the bomb #sweg
Report Abuse
lego911manegg is not online. lego911manegg
Joined: 10 Oct 2008
Total Posts: 5223
17 Aug 2013 01:30 AM
Yeah was gonna do .55
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 01:57 AM
Nop you were going to do .6341321323812093820319283471

Pfft crazy hippies these days
Report Abuse
thewhiteshark is not online. thewhiteshark
Joined: 14 Jun 2012
Total Posts: 212
17 Aug 2013 02:01 AM
Oi ToboboT You forgot "and that dog" If you`re going to do it, Do it right.
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 02:03 AM
White, I haven't watched that show in about

local timesince = math.random(3,5)

print'White, I haven't watched that show in about '..timesince.." years..."
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
17 Aug 2013 02:40 AM
Use the on touched event, and make it to where if it touches a part (not player) it goes boom.
Report Abuse
yoshimaster240102 is not online. yoshimaster240102
Joined: 14 Apr 2012
Total Posts: 470
17 Aug 2013 04:19 AM
Try this:

script.Parent.Touched:connect(function()
b = Instance.new("Explosion")
b.Parent = script.Parent
wait(0.5)
script.Parent:remove()
end)
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
17 Aug 2013 10:22 AM
Yoshi then he can never use it again and also don't use remove, it doesn't just "go" away.
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