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 » Game Design
Home Search
 

Re: Turn this code into a real script?

Previous Thread :: Next Thread 
AirickMcCool is not online. AirickMcCool
Joined: 17 Mar 2012
Total Posts: 365
10 Feb 2015 02:46 PM
I want to script a gun for Roblox that has many FPS weapon features. I will start with a Tool (renamed to Shotty) that contains a Brick (which is renamed to Handle) which uses the mesh from the Rapid Launch Blaster gear. This is the script I want to have turned into an actual script that works.

------------------------------
When Shotty is equipped
___Lock the (player that equipped the gun)'s camera to first person mode.
___Change cursor to a crosshair image.
___Play an (Equip) noise, can be heard by other players.
___Display (AmmoMeter)
When Shotty is shot
___Play a (Gunshot) sound.
___Emit 7 lasers
______Laser properties:
______Lime Green color
______Lime green light (brightness 3, radius 5)
______Velocity: 150
______Deals 9 damage to any humanoid hit (63 damage total if all 7 lasers hit)
______Multiply damage by 2 if hit a humanoid's head.
______Cancollide = no
______Disappear 10 seconds after being emitted, or disappear instantly when hitting a collidable surface
___Subtract 1 from AmmoCount
___Make player's camera jerk upwards and return to original spot (total time of 0.7 seconds).
AmmoCount max value is 10
When AmmoCount is less than 10
___Allow player to reload Shotty (takes 2.5 seconds and resets AmmoCount to 10)
When AmmoCount is 0
___Clicking plays a (TickNoise) sound and will not shoot or jerk camera.
___Player must reload by pressing R
When Shotty is reloading
___Player cannot shoot any lasers.
___Play a (Reload) sound.
___Change AmmoMeter to say "Reloading..."
When Shotty is unequipped while reloading
___Stop playing (Reload) sound.
___Stop AmmoCount from resetting to 10

Shotty can only be reloaded by pressing R.
While shotty is equipped, the player's arm along with the Shotty will always point at the player's cursor. Arm and Shotty can aim forward, down, up, left, and right, but not backward (Cannot aim in the direction that the player's back is facing.)
Report Abuse
Blackstride is not online. Blackstride
Joined: 19 Nov 2010
Total Posts: 8133
10 Feb 2015 03:38 PM
Okay, so you want us to make you a gun for free, and no absolute reason.
Report Abuse
cosmo9512 is not online. cosmo9512
Joined: 20 Jun 2013
Total Posts: 1407
10 Feb 2015 03:46 PM
We are not your scripting slaves.
Report Abuse
18lpickett is not online. 18lpickett
Joined: 15 Jul 2012
Total Posts: 3121
10 Feb 2015 03:48 PM
Are you kidding me?
Report Abuse
RowanMcJak1 is not online. RowanMcJak1
Joined: 23 Jun 2010
Total Posts: 8487
10 Feb 2015 04:00 PM
"I want to script a gun"
>doesn't try to script AT ALL
Report Abuse
InnovatedFighting is not online. InnovatedFighting
Joined: 30 Oct 2014
Total Posts: 1040
10 Feb 2015 04:16 PM
I would do this, but not for free. Add a prize like 500 robux or something and I will do it possibly.

--Gun Fighter Extraordinaire, SoundOfMurder--
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
10 Feb 2015 04:20 PM
This is a very good outline.

9/10
Report Abuse
AirickMcCool is not online. AirickMcCool
Joined: 17 Mar 2012
Total Posts: 365
11 Feb 2015 10:53 AM
@GodShowsTheWay thanks for the support.

@Other Guys hey, at least I said please :C
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
11 Feb 2015 11:08 AM
Hey I want to make a gun too please help me also?



/* Found on Game Creation and Development > Scripters */
Report Abuse
AirickMcCool is not online. AirickMcCool
Joined: 17 Mar 2012
Total Posts: 365
11 Feb 2015 11:26 AM
I need help just as much help with making a gun as you do buddy :|

================================================================================
I didn't know what to use for a signature so I used a sentence of me not knowing what to use as a signature for my signature.
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
11 Feb 2015 12:23 PM
@AirickMcCool

Yah know... If you looked at my Signature and my profile.
I was trolling you... I can do all of this...
Report Abuse
AirickMcCool is not online. AirickMcCool
Joined: 17 Mar 2012
Total Posts: 365
11 Feb 2015 01:01 PM
Ok I just got really confused for a moment.

================================================================================
I didn't know what to use for a signature so I used a sentence of me not knowing what to use as a signature for my signature.
Report Abuse
Blackstride is not online. Blackstride
Joined: 19 Nov 2010
Total Posts: 8133
11 Feb 2015 02:17 PM
you said please? want a cookie?
Report Abuse
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
11 Feb 2015 04:06 PM
Listen man, this is a really good outline, flowchart, whatever. I think if you put your mind to it, you would pick up scripting really easily!

~Upload code to codepad-dot-org with Lua syntax highlighting to preserve indentation and make it easier to read!~
Report Abuse
RowanMcJak1 is not online. RowanMcJak1
Joined: 23 Jun 2010
Total Posts: 8487
11 Feb 2015 04:08 PM
@mike
Yeah. It's good for "unplugged" scripting.
Report Abuse
cosmo9512 is not online. cosmo9512
Joined: 20 Jun 2013
Total Posts: 1407
11 Feb 2015 11:42 PM
@Airick
Where in the post did you say please?
Report Abuse
AirickMcCool is not online. AirickMcCool
Joined: 17 Mar 2012
Total Posts: 365
12 Feb 2015 08:28 AM
@nicemike40
That code.org thing looks interesting. Could you help me figure out how exactly to use it please? =3

================================================================================
I didn't know what to use for a signature so I used a sentence of me not knowing what to use as a signature for my signature.
Report Abuse
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
12 Feb 2015 02:07 PM
It won't really help you code, I just find it's easier to debug a person's code if it's already properly highlighted and indented. The indentation problem might have been fixed by the forums since I last updated my signature, though.

Basically, you go to codepag.org and choose "Lua" from the list on the left. You can uncheck "run code" if you want, it will usually just print an error message, and then press submit and post the URL on the forums like this:
http://codepad.org/OqpLKwhq

or, if you're afraid of ROBLOX banning you for a day for posting links on the forums (happened to me once w/ codepad, even though Stravant used to use it often) you could just say

codepad: OqpLKwhq

and people will probably figure it out

~Upload code to codepad-dot-org with Lua syntax highlighting to preserve indentation and make it easier to read!~
Report Abuse
robloxking240 is not online. robloxking240
Joined: 19 Aug 2010
Total Posts: 7049
12 Feb 2015 03:11 PM
I guess I could do this to this to improve my skills at tool-making, since I have nothing else to do right now. But note a gun model will not be included, only a block. I'll probably have it done and reply here with the link tomorrow.
Report Abuse
AirickMcCool is not online. AirickMcCool
Joined: 17 Mar 2012
Total Posts: 365
12 Feb 2015 08:00 PM
Thanks so much for being able to help me with this! Also, to make the block look like a gun, just get the Rapid Launch Blaster from free models, and remove everything except for the Tool, Handle, and Mesh
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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