I want the player to take damage when they enter the wrong password using serverscript
if userInput == pinNum then --Code if user enters correct passwords else print("wrong") screen.Text = "Incorrect Pin" --Player take damage end
Get the player who gave the input and do:
Player.Character.Humanoid:TakeDamage(DesiredDamage)
If you have no idea how to get the player, I suggest showing more of the script.