To set a Screen Time passcode on your iPad, go to Settings > Screen Time > Use Screen Time Passcode. Enter a passcode that you'll remember but that others won't be able to guess. This will prevent others from changing your Screen Time settings or accessing restricted content.