So basically, I need a script where you fire and an invisible model on top of the barrel slowly becomes bright red.
Example of barrel lighting up:
Credit to Rally for making the Technical machine gun, just using an image of it as an example.
After you fire a certain amount of bullets, it stops firing and starts to emit smoke. You must wait for it to cool down fully in order to fire again. The heat should also be unaffected when the gun is unmounted/dropped as well, so people don't bypass it. All this doesn't have to be exactly how I mentioned, it just needs to be good. There at least has to be the anti bypass feature though.
You will be credited for your script when I release the weapon.
We can talk more about it on Steam or Discord.