Add ammo system to Weapons Kit

Thanks for the tutorial above. Yes, the player may find other items in the game

3 Likes

ok GOOD NEWS! Im pretty much FINISHED the ammo system entirely. I was thinking maybe since i couldnt do anything for the reloading part, i could create our own reloading system.

Want me to create a custom reloading system, its pretty simple tbh, just gotta use UserInputService in a local script with a cooldown, fire a remote event to the server and do the math for the CurrentAmmo and LimitedAmmo on a server script. Only hard part is the animation lol

3 Likes

It would be nice if the reload system was in the gun, but I do not want your work to be too hard

3 Likes

Well id say i will do it. I dont want a “complete” system that is missing the last key, and it may be an issue for players when they cant reload when pressing R, that could seem unfair to them, you know?

Plus, i only use my time on roblox studio, not playing games, so i really dont mind doing this at all, bcz i think this is fun, and what else would i be doing in roblox studio?

3 Likes

Yes, I think like you, the game has to be made in the best way
But I saw in your roblox profile that you are working on a game
I did not want you to get too tired for this :sweat_smile:
Otherwise I would love to have a system r weapon
But now that you want to fix it, thank you :green_heart:

2 Likes

I was browsing the dev forum roblox today and came across some good animations, I hope it good
High-Quality R15 Gun Animations

3 Likes

okay thanks lol, my time is saved.
Im nearly done the custom reloading system, just have to fix some bugs and it will pretty much be good to go.

3 Likes

Im done the ammo system, and just about to finish the reload system. I gtg now for a few hours, i will reply once i come back

2 Likes

Thanks for the info, I’m looking forward to the full system

2 Likes

Hey sorry for replying very late. Ive been dealing with a silly bug with the reloading system, where when you press R, but shoot while reloading, and press R again within the reloading time (2 seconds) after pressing R the first time, the gun reloads instantly without waiting.

I obviously know what the problem was, but was struggling how i was able to fix it. However, I did find a good fix, by checking when the reload Sound finishes playing, then it reloads the ammo. But the thing is that reloading would take a lot more time than usual, since the code is depending on when the sound will fully finish playing.

Im not sure if you dont mind at all, and just wanted to ask if you want the script that handles the reloading to depend on when the Sound will finish playing, and then changes the ammo

3 Likes

I think it’s better when you press R and wait a few seconds and then it reloads

Because even in a real gun, you have to take the ammunition out of the gun at the time of reloading and put new ammunition inside the gun, the same steps in the real world take a few seconds.

And for the sound, well, if the sound plays when reloaded, it’s better

2 Likes

I agree

Sound is definitely played when pressed R (when reloading).

I was just saying this because sometimes there is unnecessary audio that is left playing without stopping until a few (maybe even just 1) seconds. So if you press R to reload gun, it will wait for the reload audio to finish playing (even with the unnecessary audio that’s left) , and then change the ammo.

If you are finding different reloading audio, then please beware of the unecessary audio thats at the end before choosing.

If you are good with all this, then Im pretty much finished everything!

2 Likes

Well, I think it’s better not to have unnecessary audio
But you are more experienced than me and you know better things
If you can change the sounds later and remove the unnecessary time and sound (just by changing the sound) it is good
I look for better sounds and replace them

2 Likes

Well i meant like if you are using different reload audio, rather than the original reload audio from the roblox Weapons Kit, then you should beware of what audio you are choosing, because sometimes that audio you are choosing MIGHT have empty audio left after the reloading sound is already done playing.
Hopefully this makes sense

2 Likes

Oh ok thank you
From now on, I will pay attention to this

2 Likes

I will be sending the whole Ammo System and Reloading System soon today. Its been long enough, and i think its time today i send both Ammo System and Reloading System COMPLETED version

3 Likes

Ok, thank you for all the hard work you have put in these few days :green_heart:

2 Likes

I have a request for you :sweat_smile:
I do not know how hard this system may be but
If you are careful, when you bring one of the Weapons Kit weapons into your game, your mouse automatically locks in the middle (same as shift lock).
I want the mouse to be in the middle and locked when possible when the gun is active
And when it was inactive, the mouse could be moved and not locked in the middle of the screen

If this system was not difficult for you and was applicable
I ask you to add this as well
Thankful :green_heart:

2 Likes

There is a modified Weapons Kit that fixes the shoulder camera. When the gun is equipped, the shoulder cam (mouse lock) will be enabled, and when gun is unequipped, it removes shoulder camera. Check out this link and follow the instructions:
Weapons Kit: Shoulder Camera
You have to download the RBXM file that is given in the post above, it will include the modified WeaponSystem folder. Place the WeaponSystem folder inside of ReplicatedStorage, and delete the rest of the weaponsystem folders that came along with the weapon tools

2 Likes

Unfortunately, still couldn’t send the ammo system and reload system today. I found a new bug which really needs to be fixed. I cant explain since you dont know whats happening.
I truly apologize again for the long long wait.

3 Likes