O
Optimistic Ori
Guest
Hi, I'm new to working with scripts, as I've been mainly watching tutorials when doing something I don't know how to do, and I have come across a problem that is driving me mad.
All I have seen people say to do is to basically put all the code and wrap it in a function. I understand that part, not too difficult, just a little copy and paste.
But what I don't get is how to call it. Everytime I try to call the function like I've seen people do, I get this:
And I don't get why it does this! It feels like I'm doing everything right, and it's just giving me a middle finger.
The code I place in the function works when I just run it in the Step event, but not when I try to call the function while it's in a script.
All I have seen people say to do is to basically put all the code and wrap it in a function. I understand that part, not too difficult, just a little copy and paste.
But what I don't get is how to call it. Everytime I try to call the function like I've seen people do, I get this:
And I don't get why it does this! It feels like I'm doing everything right, and it's just giving me a middle finger.
The code I place in the function works when I just run it in the Step event, but not when I try to call the function while it's in a script.
Last edited by a moderator: