|
| 12 Sep 2012 03:03 PM |
An explosion script. I'm starting to think that it is not the explosion script, but the other script that puts it into the rocket. This is the other script.:
function onFire(gun) local b = Instance.new("Part") b.Parent = game.Workspace b.CFrame = gun.CFrame + (gun.CFrame.lookVector * 10) b.formFactor = 2 b.Size = Vector3.new(1,1,2) b.TopSurface = 0 b.BottomSurface = 0 b.BrickColor = BrickColor.new(24) b.Reflectance = 0 b.Name = "Rocket" local bv = Instance.new("BodyVelocity") bv.velocity = gun.CFrame.lookVector * 200 bv.Parent = b local s = script.Parent.Rocket:Clone() s.Disabled = false s.Parent = b end |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Sep 2012 03:08 PM |
| you didnt describe the gun. The script doesnt know what "gun" is. |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 03:17 PM |
| Er, the gun thing is later in the script. do I need to post that too? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 12 Sep 2012 03:56 PM |
b.formFactor = 2
bv.velocity = gun.CFrame.lookVector * 200
Try capitalizing these? <:u
b.FormFactor = 2
bv.Velocity = gun.CFrame.lookVector * 200
I dunno. |
|
|
| Report Abuse |
|
|
Priminal
|
  |
| Joined: 02 Sep 2012 |
| Total Posts: 18 |
|
|
| 12 Sep 2012 04:02 PM |
| Also when the gun bullet hits a person use raycast to avoid your character when it fires out of the gun. |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 04:02 PM |
@Giant It's with rockets exploding on impact. The rockets won't explode, they will just keep floating. |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 04:03 PM |
| It's a helicopter, not a gun. |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 04:08 PM |
| BUMP. I really need help with this. |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 04:23 PM |
Here is other half you guys are probably waiting for:
elseif key == "f" and fly == true then if fire == true then fire = false local gun1 = heli.Parts:FindFirstChild("Gun1") local gun2 = heli.Parts:FindFirstChild("Gun2") local gun3 = heli.Parts:FindFirstChild("Gun3") local gun4 = heli.Parts:FindFirstChild("Gun4") if gun1 ~= nil then onFire(gun1) end wait(0.1) if gun2 ~= nil then onFire(gun2) end wait(0.1) if gun3 ~= nil then onFire(gun3) end wait(0.1) if gun4 ~= nil then onFire(gun4) end wait(1) fire = true end |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Sep 2012 04:44 PM |
Just post the entire thing as one.
~ Moo logic = logical logic ~ |
|
|
| Report Abuse |
|
|
ToonU
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 6303 |
|
|
| 12 Sep 2012 05:27 PM |
function onFire(gun) local b = Instance.new("Part") b.Parent = game.Workspace b.CFrame = gun.CFrame + (gun.CFrame.lookVector * 10) b.FormFactor = 2 b.Size = Vector3.new(1,1,2) b.TopSurface = 0 b.BottomSurface = 0 b.BrickColor = BrickColor.new(24) b.Reflectance = 0 b.Name = "Rocket" local bv = Instance.new("BodyVelocity") bv.Velocity = gun.CFrame.lookVector * 200 bv.Parent = b local s = script.Parent.Rocket:Clone() s.Disabled = false s.Parent = b end --[[ Remember to use caps! ]]-- |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 05:36 PM |
Toon, leave cause you aren't even helping anyone.
b.CFrame = gun.CFrame + (gun.CFrame.lookVector * 10)
really?? |
|
|
| Report Abuse |
|
|
ToonU
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 6303 |
|
|
| 12 Sep 2012 05:38 PM |
XxChopSlaperxX Shut up and stop showing off.
-[ http://www.roblox.com/Build-Brag-V-2-1-place?id=64950819 ]- |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 05:39 PM |
Toon,
Leave before you make a fool of yourself. |
|
|
| Report Abuse |
|
|
ToonU
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 6303 |
|
|
| 12 Sep 2012 05:40 PM |
Oh, you already did that. :D
-[ http://www.roblox.com/Build-Brag-V-2-1-place?id=64950819 ]- |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 05:41 PM |
From: ToonU Subject: LOL! SHUTUP!
Stop flaming me on the forums, mind your own business.
-Kevin
I'm not flaming, you can't script, it's a fact. We all know that. |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 05:42 PM |
| @Toon, you have been given a chance. You have been immature and declined the chance to leave before you make yourself look *more* foolish. |
|
|
| Report Abuse |
|
|
ToonU
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 6303 |
|
|
| 12 Sep 2012 05:42 PM |
Yes I can. It's your issue that you just wanna be a nub and show off. I scripted my game.
VV VV
-[ http://www.roblox.com/Build-Brag-V-2-1-place?id=64950819 ]- |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 05:43 PM |
| Yeah, sure. I've never seen that non-free modeled place. Nice job. |
|
|
| Report Abuse |
|
|
ToonU
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 6303 |
|
|
| 12 Sep 2012 05:44 PM |
What ever. You guys don't appreciate help.. Like seriously? I tried and you are just giving me crap. Get a life.
-[ http://www.roblox.com/Build-Brag-V-2-1-place?id=64950819 ]- |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2012 05:46 PM |
--[[ Remember to use caps! ]]--
Great help. |
|
|
| Report Abuse |
|
|