(before i begin, No, I’m not looking for anyone to write entire scripts for me, i know how to script, just need help figuring things out)
Currently working on a combat game.
I wanted to make a damage indicator system, Everytime you damage someone, it shows text with how much damage you did.
I didn’t want to do this from the tool that damages other players, Since everyone would see the text then (didn’t want to use remote events to tell the client either)
So i just made a local script that checks through every player whenever they get damaged, and see if they are the one who did it, This works fine, But i feel like its not the best approach.
Along with this, I can’t detect deaths properly, With my killfeed system, it doesn’t always show who died (for whatever reason)
And when i try to make the damage indicator detect deaths via Humanoid.Died, Its really delayed (i know the reason)
So i tried to make it check if the player you damaged is now dead, Great, Right? No, because if you hit the person while they are dead, It says you killed them again (really annoying)
And for an infection gamemode im trying to make, It also goes through EVERY player, Probably not good either since the server constantly watches characters incase they die or get damaged.
Back to the damage indicator, I really don’t know what to do for this anymore, I just want it to check which ever humanoid you hurt, Not just players.
This is really blocking further development of my game, Any help is appreciated.