I’m building a survival game and my game is similar to Dayz. I want game guns to take their ammunition from the Player’s backpack, just like Dayz and Battle Royale games.
But the problem
My problem is that I do not know how to take the number of ammunition from the backpack and give it to the gun
And when he used the ammunition, the ammunition should be removed from the backpack
Or when the player drops ammunition from the backpack, the ammunition of the gun decreases
Just like the Battle Royale and Dayz games
I searched completely on YouTube and even on devforum roblox but there was no tutorial to help me (maybe I did not find it right)
Or I even wrote code, but when the player was dropping ammunition, the number of ammunition from the weapon did not decrease, or such problems
I have been looking for this answer for a week and I have not found anything and devforum is the last place I could go.
I use any kind of answer
Tell me if you need anything
Thanks for all the help