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: Plane Missile

Previous Thread :: Next Thread 
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
04 Aug 2011 12:16 PM
Hey guys I'm a newbie at making planes.. so I got Crazyman32's plane kit. If anyone could help me make a script that when f is pressed it fires a missile on a wing? I would do it myself, but crazyman's coding is so complex.
Report Abuse
Ronnie124 is not online. Ronnie124
Joined: 26 Nov 2009
Total Posts: 694
04 Aug 2011 12:16 PM
One word: BodyVelocity
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 12:18 PM
Lawl, I made the homing missile with his plane kit, and added several other functions to it also. I'm still stuck on the Billboard Gui part.
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
04 Aug 2011 12:26 PM
would you mind sharing your homing missile script with me? I promise I won't copy, just figure out what I have to do.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 12:27 PM
No thank you
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
04 Aug 2011 12:31 PM
well could you tell me what to do, then?
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 12:31 PM
BodyVelocity is the key
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
04 Aug 2011 12:34 PM
Then why post :/

I think he may have used RocketPropulsion and then set the target to a player with GUI: http://wiki.roblox.com/index.php/RBX.lua.RocketPropulsion_%28Object%29

As for a simple rocket one or more of the many 'body' instances will do.
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
04 Aug 2011 12:34 PM
1 dun g37 17!
I dun get it!

What am I supposed to do with bodyvelocity? How do i use it?
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
04 Aug 2011 12:35 PM
Dang it! I swear every time I post, 2 people have beat me to it!
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 12:36 PM
RoflBread, I didn't use RocketPropulsion
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
04 Aug 2011 12:41 PM
@Citymaster22 Just a guess :)


Techboy, just give me a min to draft up a script for you ;)
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 12:43 PM
Lawl it's not that easy. The lock system. BTW can you help me test? Start server won't open up NetworkSystem, so I can't start a player
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
04 Aug 2011 12:56 PM
Ok, please don't laugh, i have never scripted a missle before:

local canFire = true
local launcher = part from which the missle will appear to be have fired
local size = Vector3.new(1,1,1) -- change
local force = 5
function missleKeyPressed()????
missle = Instance.new("Part")
missle.Parent = game.Workspace
missle.Size = (size)
missle.Anchored = false
missle.Position = launcher.CFrame.lookVector * 10

bv = Instance.new("BodyVelocity")
bv.velocity = launcer.CFrame.lookVector * missle:GetMass() * force
end

SomethingLikeKey.Press:connect(missleKeyPressed)


Ofc, you would have to create a onTouched() function for the newly created missle, but I assume you can do that :D

HOPE THIS HAS HELPED!!11
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
04 Aug 2011 12:57 PM
Ah woops, missed out the IF

just slam this in here

if canFire = true then

canFire = false



andddd at the end of my script there, put in wait(delayTime) canFire = true
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
04 Aug 2011 12:59 PM
lol this is fine I shouldnt have a prob converting this... thumbs up
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 12:59 PM
What about the lock system? SO it locks onto a plane :P That part was easy :P
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
04 Aug 2011 01:00 PM
@citymaster sure, when?
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 01:06 PM
Say what? I'm not giving you it :P
I have it :P
Wanna test it out?
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
04 Aug 2011 01:12 PM
Umm...that's what I was referring too. >_<
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 01:13 PM
For me giving it to you?
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
04 Aug 2011 01:15 PM
*facepalm*
no, for testing it, you ninny! (jk)
But seriously, I wanna test it.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 01:19 PM
Okay, place 16
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
04 Aug 2011 01:21 PM
crazyman's coding is so complex.

Lolno.
Just clean(ish) :3

Regards,
~Scarfacial
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 01:25 PM
He likes to complicate things further than it needs to be.
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