It was working perfectly up until now. I have no idea what happened, but instead of looking like this when the menu button is pressed:
it looks like this:
and then when item is selected it goes to the item only menu anyways. Which is not what I want.It was working perfectly before, but then I don't know what happened and the script would do this even if I put it in a new project.
How can I modify the script to fix this?