I think my fault was I didnt add the healthbar component in my unity component. so I added it after the sequence, and I made it a function so now it works and I dont want to touch it again.