I might be thinking of doing some type of part raycast, but I want to know if there is a more simpler way to make this type of concept. I've seen it in other games and I wanted to give it a try.
✓ ANSWER ACCEPTED
how would you make an explosion that damage depends on range?
1 answer
✓ Accepted answer
You can check a distance using magnitude:
magnitude = (first parts position - second part's position).magnitude
Based on that number value, you can determine how big you want your explosion.
AetherProgrammer was talking about his tutorial he made for it about an hour ago - https://forum.scriptinghelpers.org/topic/763/how-magnitude-works-in-layman-s-terms
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
thx