Welcome to the forum @DrippySlime This is a friendly place where you can ask help on levels, report bugs, or just chat with other coders! Don’t forget to read the guidelines if you haven’t yet. Have a great time!
The first and last line of code and line 9, 10 have a semicolon instead of a dot making it this way:
game : spawnXY(“fence”)
Switch them to dots and if it didn’t work, please post your code formatted using this button: