Zombies Scoring Script trouble

Hello there! I am currently making a zombie shooting game for my Game Designing class, and I’ve gotten pretty far into the process. The only thing I’m stuck on at the moment is the damage and scoring system. I’m pretty new to scripting and I couldn’t wrap this problem around. What I want to do seems simple too. I want to kill a zombie, the player earns (x) amount of points. When the player eventually dies, a highscore table will display and the player can type in their name on the table. If someone can show me a script that will make this work, it’s greatly appreciated and I can get back to my project. Thanks a bunch! You guys are an awesome community~

Take a look at the Survival Shooter that Unity Technologies put together – they do exactly what you’re asking for and it’s the same genre: Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn

Specifically lesson 108 and 110 should cover you.