I am trying to make it so that when my gun hits someone it does damage.
I assuming you have the gun emit a bullet. So just have a collision trigger in your player that will detect if the bullet collides with the player it will subtract health.
Did you manage to figure this out? I could give multiple examples of different types of damage.
It worked pretty well, but thanks for asking!
I’m glad I could help. If there’s anything else let me know.