I'm making a game where there are 2 teams, Survivors and Zombies, I want all players to be on the Survivors team to start with, and as npc's kill them, they join the Zombie team (work with the npc's).
My idea was to make a script that would work universally with every player but my problem is I do not know how to reference to the players humanoid as I do not know how to do it without using an exact username. I've looked at 30 tuts today to no avail and really need someone to show me what to do, I'd even let someone connect to my pc via team viewer. I'm keen about learning however I am really stuck. also, I wanted to make a score board where every time someone dies, the remaining survivors gain 1 point (like cod infection). Any help is appreciated, this is making me frustrated that I can't get it.
if game.Workspace.Player.Humanoid.Died and game.Players.
end
^^^ Your probably laughing at me rn but I've tried so many different things :(

2 comments
Thankyou so much! I just have one question, if the script changes the player to its attackers team, wont it change my zombie team players to survivors?
Why would you just write the script for him? He needs to know, If you just give him the answers he's not going to learn.