Hi guys, so what I need help with today is making an enemies pieces shatter like glass killing the humanoid on a collision. Now I had 2 ideas for how to do this.
1. Make the enemies pieces actually shatter and if the head or chest is hit, it dies.
2. Make it so wherever the hit is detected, particles spawn.
***I am not extremely good at Roblox Lua but here are the things I have tried:
Modifying a blood script (But none of the effects happen to humanoids, only players)
Reshaping breakable glass into a humanoid and animating (But that didn't work either)
Researching extensively on possible ways to do this or things that I could modify to meet this goal (But there was nothing about anything remotely similar)***
So, I am out of ideas and I am hoping that some of you might know how to do this. Thank you so much guys!
NOTE: If its sarcastic or unhelpful, please just don't comment nooby things like "Rekt Rekt get gud with codez nub"
What i did was, I just duplicated head, so say when I shoot the head, it looks like a head shot, I add a break glass script, the reason u duplicate the parts is because its going to shatter in pieces so, the arm,is going to be missing unless you want that. If that is the case then don't duplicate the parts, so add a break glass script, if you want sound add playsound on hit or touch.