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: As you know, I am having trouble with a script

Previous Thread :: Next Thread 
CoolJohnnyboy is not online. CoolJohnnyboy
Joined: 09 Mar 2010
Total Posts: 17699
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
CoolJohnnyboy is not online. CoolJohnnyboy
Joined: 09 Mar 2010
Total Posts: 17699
12 Sep 2012 03:06 PM
Help me please..
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
12 Sep 2012 03:08 PM
you didnt describe the gun. The script doesnt know what "gun" is.
Report Abuse
CoolJohnnyboy is not online. CoolJohnnyboy
Joined: 09 Mar 2010
Total Posts: 17699
12 Sep 2012 03:17 PM
Er, the gun thing is later in the script. do I need to post that too?
Report Abuse
CoolJohnnyboy is not online. CoolJohnnyboy
Joined: 09 Mar 2010
Total Posts: 17699
12 Sep 2012 03:25 PM
BUMP
Report Abuse
CoolJohnnyboy is not online. CoolJohnnyboy
Joined: 09 Mar 2010
Total Posts: 17699
12 Sep 2012 03:53 PM
Come on, please?
Report Abuse
GiantMilkDud is online. GiantMilkDud
Joined: 14 Jul 2008
Total Posts: 7343
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 is not online. 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
CoolJohnnyboy is not online. CoolJohnnyboy
Joined: 09 Mar 2010
Total Posts: 17699
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
CoolJohnnyboy is not online. CoolJohnnyboy
Joined: 09 Mar 2010
Total Posts: 17699
12 Sep 2012 04:03 PM
It's a helicopter, not a gun.
Report Abuse
CoolJohnnyboy is not online. CoolJohnnyboy
Joined: 09 Mar 2010
Total Posts: 17699
12 Sep 2012 04:08 PM
BUMP. I really need help with this.
Report Abuse
CoolJohnnyboy is not online. CoolJohnnyboy
Joined: 09 Mar 2010
Total Posts: 17699
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
CoolJohnnyboy is not online. CoolJohnnyboy
Joined: 09 Mar 2010
Total Posts: 17699
12 Sep 2012 04:28 PM
Still no help? Please...
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
12 Sep 2012 04:44 PM
Just post the entire thing as one.

~ Moo logic = logical logic ~
Report Abuse
ToonU is not online. 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
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
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 is not online. 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
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
12 Sep 2012 05:39 PM
Toon,

Leave before you make a fool of yourself.
Report Abuse
ToonU is not online. 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
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
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
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
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 is not online. 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
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
12 Sep 2012 05:43 PM
Yeah, sure. I've never seen that non-free modeled place. Nice job.
Report Abuse
ToonU is not online. 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
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
12 Sep 2012 05:46 PM
--[[ Remember to use caps! ]]--



Great help.
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