Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make splash damage from a projectile?

I want to figure out how to make an exploding projectile thing, but I can't figure out how to make it do damage over a certain radius. (area of effect)

Without using the actual stock explosion effect, I mean. I don't want it to downright kill an enemy.

So, uh. Yeah.

I dunno how else to describe it.

help

1 comment

0

weld a big platform onto projectile, and make that big platform invisible. put damage script on big platformy thingy

1 answer

Check out this link about magnitude

Magnitude allows you to find the distance between two points

1 comment

0

To add to this, one just has to go through all the possible enemies and check each Torso (assuming they have a Torso at the moment) and use the magnitude function to see if they are in range. If so, attempt to do damage to their humanoid (usually with the 'TakeDamage' function).

This discussion is preserved as it was. New answers, comments, and votes are closed.