Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

MouseButton1Down is not a valid member of Frame?

Asked by 6 years ago

I have a LocalScript placed under a frame and I get this error. Here is the code.

Any help? This is the part of the script that errors out.

script.Parent.MouseButton1Down:connect(function()
2
The frame does not connect to MouseButton1Down, that function is for a text button or Image Button. dirk2999 103 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

List of Frame Events

Frame only has mouse-related events for when a mouse enters, leaves, moves around, and scrolls the mouse wheel. You need a Text Button or Image Button if you want to register mouse clicks, or make use of the UserInputService.

Ad

Answer this question