Unexpected symbol near ')'

I have a basic function that triggers a server event

function checkForItem()

This returns unexpected symbol near ‘)’ and I can’t see why. I have other similar functions that work. I tried adding extra parameters to the TriggerServerEvent but I still get the same issue.

Hey, there,

Would you mind sending 15 lines of code before and after this so people can look at anything before this function? Syntax here is completely correct and my guess is you’ve messed up something before this or after. Also, add full error message and/or screen-shot of error.


Wild guess that happened to me too many times to count:
If you defined an event above that function you might be missing a ) at the last end above the function.

Otherwise yes, please post the function / event in front of the printed function, the error should be located there.