How would I go about scripting a custom explosion system

Hello! I am working on grenades for my game, but I do not want to use the Roblox explosions, I want to script my own, this is what I wanted to do:

-Custom Explosion that doesn’t go through walls (Preferably Raycast)
-Damage drop off from the explosion (Similar to the Roblox Explosion)
-See what parts of the player are hit from the explosion (If the explosion is to the side of the player it will it the Arm, Leg, Head, and torso of that side of the player because I made a limb system where Limbs have HP

How would I go about making this? I’m not the best with Raycasts but I think that may be my best option, if there are any other methods please let me know as well.

2 Likes

Explosions can raycast to each body part on each player and then use the distance to calculate damage. I think you pretty much got the idea.

1 Like

Thanks, this was much simpler than I thought.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.