So uh i've tried to make this a 2 month ago, so i didnt made that.
So asking.
How do i make damaged(hurt) animation(sound) script When player gets damaged it plays sound or animation.
Like this?
01 | player = script.Parent -- a script inside player |
02 | hum = player:FindFirstChild( "Humanoid" ) |
03 | sound = script.Sound |
04 |
05 | function Play() |
06 | sound:Play() |
07 | end |
08 |
09 | if hum:TakeDamage -- or what |
10 | Play() |
11 | end |
Closed as Not Constructive by DeceptiveCaster and Amiaa16
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?