Onboarding - Puzzle discussion

HELP! how do i make a stealth enemy with code.