I am no stranger to making gun systems, I’ve made about 2 in my whole scripting journey but this time I’m trying my hand at a proper framework, and I’m trying to make it as clean, optimized and modular as possible.
I have an obstacle in front of me though, and it’s ammo, more specifically, saving ammo for each individual gun.
I have no clue which method should I use and which one of them has the best perfomance, because obviously ammo will be depleted very fast and that may drop a few frames. (unless I am just very paranoid and wrong about things like that)
so far, these are the possible options i can think of:
-
Use Attributes: Create attributes called Magazine and Reserve, both of which are number values, use
:SetAttribute()
to deplete / add
-
Use Value Instances: Automatically create a folder with all the needed values
anyone whos a lot more experienced than me, please help me decide!