Having issues With my Gui Opener script

Hi so I was scripting a Gui Opener and I got [ MouseButton1Down is not a valid member of Frame “Players.Fununsf.PlayerGui.ScreenGui.Frame”]. And I was confused Because I looked at some other code that was the exact same. I copied and pasted to see if it worked and it did. I don’t understand what is going on can someone please help me.

Here is the code
ok this is the issue
Here is the error that pops uperror

It would be very appreciated if someone can help me.

You can only do this with a button

wait actually I found out why lol. Thx for the help. I forgot to put it as a button

MouseButton1Down doesn’t work with frames. Try doing buttons or imagebuttons. If you really, really don’t want to add an invisible button with a size of {1, 0}, {1, 0} as a child of the frame, you can use Frame.InputBegan instead

Can you take photo of your Explorer?

thank you for the help I fixed it and now it is working fine :smiley: