Hi Aedan,
Welcome to our community!
Bixarrio is right. We need to know exactly which script editor you use. Otherwise, we might suggest solutions for the ‘wrong’ script editor, which would not be helpful for you.
Have you already seen this thread?
See also:
- Forum User Guides : How to apply code formatting within your post
- Forum User Guides : How to mark a topic as solved