Main Search
Delta Corp Forum Index
 
 
FAQ Members Groups Profile Private Messages

Important Notice: We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024. If you wish to migrate to our paid hosting service, please contact [email protected].
Explosion Brick!

 
Post new topic   Reply to topic    Delta Corp Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
ganswish
Beginner Poster


Joined: 06 Feb 2008
Posts: 37

PostPosted: Wed Feb 06, 2008 2:43 am    Post subject: Explosion Brick! Reply with quote

I have a script that needs to be built :\ Please try to build it..

Name: ExplosionButton1

Description: A brick that causes a brick named ExplosionTarget1 To explode with a blast radius of 10

Needed Objects: ExplosionButton1 - game.Workspace.ExplosionButton1, ExplosionTarget1 - game.Workspace.ExplosionTarget1

Place Description: I need this so that I can causee a building to collapse with a detenation charge
Back to top
View user's profile Send private message
Walyn
Teapot Drone Moderator


Joined: 06 Feb 2008
Posts: 40

PostPosted: Wed Feb 06, 2008 2:56 am    Post subject: Reply with quote

print("LandMine Script Loaded")

LandMine = script.Parent

function onTouched(hit)
explosion = Instance.new("Explosion")
explosion.BlastRadius = 6
explosion.BlastPressure = 1000000
explosion.Position = script.Parent.Parent.ExplosionTarget1.Position
explosion.Parent = game.Workspace
script.Parent:remove()
connection:disconnect()
script.Parent.Parent.ExplosionTarget1:remove()
end

connection = LandMine.Touched:connect(onTouched)

=====

You will need to get the Explosion sound from a rocket launcher and put it and this script in the ExplosionButton1 brick. This makes both bricks go away when the explosion is triggered.
Back to top
View user's profile Send private message
ganswish
Beginner Poster


Joined: 06 Feb 2008
Posts: 37

PostPosted: Wed Feb 06, 2008 5:21 pm    Post subject: Reply with quote

Walyn, it didnt work :\ !
Back to top
View user's profile Send private message
Tottireed
Newbie


Joined: 06 Feb 2008
Posts: 8

PostPosted: Wed Feb 06, 2008 9:05 pm    Post subject: Reply with quote

Did you get that script I sent you alright?
_________________
Totti
Back to top
View user's profile Send private message Yahoo Messenger
Tottireed
Newbie


Joined: 06 Feb 2008
Posts: 8

PostPosted: Wed Feb 06, 2008 9:14 pm    Post subject: Reply with quote

Well, here I will post it if you didn't! Razz


-----
local debounce = false

function onTouched(hit)
local humanoid = hit.Parent:findFirstChild("Humanoid")
if humanoid~=nil and debounce == false then
debounce = true

local ex = Instance.new("Explosion")
ex.Position = game.Workspace.TNT.Position
ex.BlastRadius = 10
ex.Parent = game.Workspace

debounce = false
end
end


script.Parent.Touched:connect(onTouched)
-----
_________________
Totti
Back to top
View user's profile Send private message Yahoo Messenger
ganswish
Beginner Poster


Joined: 06 Feb 2008
Posts: 37

PostPosted: Wed Feb 06, 2008 10:18 pm    Post subject: Reply with quote

Thank you VERY much Totti Smile
Back to top
View user's profile Send private message
Tottireed
Newbie


Joined: 06 Feb 2008
Posts: 8

PostPosted: Thu Feb 07, 2008 1:03 pm    Post subject: Reply with quote

Mhmm, no problem Smile
_________________
Totti
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Delta Corp Forum Index -> Script Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Back to Top              
Jenova Template © digital-delusion.com
Powered by phpBB © 2001, 2002 phpBB Group



For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!