Question:
I’m not asking anyone to script for me or anything like that. I’m wondering how this developer created such a cool effect for a player’s death animation. Any tips or ideas would be extremely useful cause I’m lost to how they managed to create the fading effect for the character.
Video of effect I wanna recreate from youtube (Not my video):
Disclaimer:
Sorry in advance if this is in the wrong category, I didn’t know where to place this question.
They probably set an event so on the Character’s death or losing all health it would trigger a function for the effect. Yet I’m puzzled on how on earth they did that.
That’s a great guess on to how they did it, but I’m not confident that this is not the method since in the video you could see how the whole character fade from all different areas and still remain in the same exact place while it fades.
When the player dies, create the highlight and create 10 parts which are randomly oriented and positioned close to the character. Make all 10 parts have a glass material, a transparency of 1, and a size of Vector.zero. Make sure every part is welded to the character too.
Loop through every descendant on the character, if it is a BasePart, make the part’s transparency to 0.01 and turn CastShadow to false (do not do these functions for the HumanoidRootPart)
Create a tween for every glass part that slowly increases the size over any duration
After you do all of these steps, it will appear like what my example shows.
(also, if you don’t know how to do the effect, please don’t reply, it just wastes the OP’s time when he reads the replies)
I’ve managed to do it following your instructions except I’m having trouble with two things.
the first problem is that it’s showing the outline of the blocks and the second problem is that it only works when I set the transparency of the glass block to anything except 1. I welded the block to a random part of the character which I’m not sure if that matters.
I was gonna mention I figured out the problem, I wasn’t supposed to parent the parts to the character I was only supposed to weld the parts to the character. Which solved the outline problem surrounding the parts. The second problem was setting the block transparency to 1 and it somehow working, that hasn’t been solved.
The second problem isn’t important at all though it’s just nit-picking. Overall I really do appreciate everyone’s help on this!!
No problem, if you want to replicate the effect better I would shorten the duration of the tween, otherwise keep it as it is right now. Have a good day!