Implementing a 'turn red when hit' feature

I’m trying to think of how I would add a feature where if a player hits you with say a sword, that the person who got hit would flash red.

Since the victim could have a shirt/pants on or possibly a morph I was wondering if people had any good strategies for this?

Simply changing the color of the part won’t be enough.

I was thinking maybe I could add a texture on top and just change its transparency? This feels like a meh solution however.

Alright, turns out a texture works perfectly.

I simply push a texture recursively into every meshpart, basepart, union of the character (6, one for each side) and set the texture to a blank white image and then changed the color and transparency as I wanted it.

image

3 Likes

Oh this is really nice I always wanted this effect and changing every baseparts color was kind of not the effect i wanted, thanks for the share!

1 Like