There is no “offside” in high school football. There’s encroachment, but it’s a dead ball foul. But, generally speaking, in high school football if the opponent of the scoring team fouls on a play that scores a TD, the score stands and the penalty for the foul can be enforced either on the try or the succeeding kickoff.