this is probably the stupidest question but
when i either right my own code
or actually type out prewritten code instead of just copying and pasting it

i get an error saying "main script not found-check prefrences"

how can i get the codes to compile