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: weapons

Previous Thread :: Next Thread 
alexdogg11 is not online. alexdogg11
Joined: 27 May 2010
Total Posts: 147
03 Jun 2013 10:00 PM
OK, so I need help with reloading, I want my script to pull out the mag and put a new one in when there is no more ammo in the clip.

I've looked at other guns and tried to read the script and get a basic understanding on how the gun reloads, but I didn't even know what it was talking about.

One thing, I have not started the reload script so I cant show you guys anything because I haven't started it, so please don't ask for a script.
Report Abuse
LordDionysos is not online. LordDionysos
Joined: 26 Jun 2011
Total Posts: 19212
03 Jun 2013 10:18 PM
It's probably a certain part you're missing from the script, unless you made it yourself.

King Vagari [Sandinista Empire] Sandinista Empire is back! Stronger and Better! Join Today!
Report Abuse
Awsomisticguy537 is not online. Awsomisticguy537
Joined: 03 Dec 2010
Total Posts: 507
03 Jun 2013 10:27 PM
I just finished a reloading script. Coming from expiriance, I think you'll find making the gun actually reload harder than animation ._. (Unless you're copy/pasting stuff from a FM)
Report Abuse
alexdogg11 is not online. alexdogg11
Joined: 27 May 2010
Total Posts: 147
03 Jun 2013 10:29 PM
no I'm making this script myself, I'm not copying and pasting from another script
Report Abuse
LordDionysos is not online. LordDionysos
Joined: 26 Jun 2011
Total Posts: 19212
03 Jun 2013 10:31 PM
What script is it? Raycast or bullets?

Either way you probably didn't rename a part Mag or the Handle is missing some founds(Fire,Reload,trigger1,trigger, etc etc)


King Vagari [Sandinista Empire] Sandinista Empire is back! Stronger and Better! Join Today!
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
03 Jun 2013 10:32 PM
In most cases, I've seen a value of the ammo. Once the value is 0, they reload it back to the maximum.

Wreckerbuster67| The Apocalypse Imperium Supreme Overlord, 2iC| Conquest Private 1st Class
Report Abuse
alexdogg11 is not online. alexdogg11
Joined: 27 May 2010
Total Posts: 147
03 Jun 2013 10:33 PM
it is a raycasting gun
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
03 Jun 2013 10:42 PM
Add this part after the "OnMouseButton1" Part of the function.

script.Parent.Ammo.Value=script.Parent.Ammo.Value-1

Wreckerbuster67| The Apocalypse Imperium Supreme Overlord, 2iC| Conquest Private 1st Class
Report Abuse
LordDionysos is not online. LordDionysos
Joined: 26 Jun 2011
Total Posts: 19212
03 Jun 2013 10:44 PM
Some raycasts don't use reload animations.
But if they do a specific part is usually named Mag, did you get the scripts out of a already scripted gun or just the scripts?

King Vagari [Sandinista Empire] Sandinista Empire is back! Stronger and Better! Join Today!
Report Abuse
alexdogg11 is not online. alexdogg11
Joined: 27 May 2010
Total Posts: 147
03 Jun 2013 10:50 PM
ive scripted this gun my self, all of the stuff i've scripted is my own scripting knowledge, i haven't used anyone else's scripts
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