So i need help with a working friendly fire system with explosions like Bombs, RPG and Rocket Launchers.
I know how to make a friendly fire system with normal guns and that but with explosions i have no clue…
As my only working weapon right now is dropping a bomb which basically just spawns in a clone of a bomb when weapon is used and then after 2-3 seconds it spawns in an explosion at the same position of the bomb clone.
But is there anyway i could make the bomb deal damage to an enemy team and not deal damage to a friendly team…?
I’m assuming your explosion currently works exactly as normal: anything that gets hit gets killed instantly or dismembered.
There’s a property of Explosion related to max breakjoints radius, set that to 0.
Next, connect to Explosion.Hit. This event will fire with anything the explosion hits. You have to connect before you put the explosion in workspace.
Reuse your friendly fire system to know if the hit part was an enemy or ally. If it’s an enemy, deal damage to or :BreakJoints() the hit part.