How could I make a custom "explosion"

What I want to do is be able to create an explosion simulation like the default Roblox explosion instance, I don’t need to know how to do the effects as I already created it

Most solutions I’ve tried are too complicated for me or are too simple for me (like only damaging the player and not applying knockback to models or breaking models)

I’ve tried using explosion instances themselves however, they break humanoid models which is something I don’t want as I want to implement ragdoll to my game. I’ve tried using raycasting but it got incredibly complicated for myself

So, what would be the “best” way to create custom explosions?

2 Likes

You can use GetPartBoundsInBox or simply looping through player’s characters and finding closest ones.
Then you can apply Impulse to humanoidrootparts of players (and not only) from (ExplosionPos-Part.Position).Unit*Power

1 Like

what about breaking models and flinging parts?

1 Like

:GetJoints(),loop through them and break each.
ApplyImpulse is for flinging parts and make sure to break joints and unanchor them first!

1 Like

whenever i apply the impulse, it doesn’t fling the part

1 Like

Looks like you’re going for 3-4 effects here at the same time… Maybe handle each one separately.

1 Like

I found the issue, the explosion itself was effecting the raycast. I thought CanQuery being false would disable the raycasts

1 Like

Why would you even need raycasting?

1 Like

Multiply it by something bigger then
Vector3*100 idk

1 Like

so i can check if the target is behind something

2 Likes

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