function onClick(mouse) script.Parent.Parent.Frame.Visible = true end script.Parent.MouseButton1Click:connect(onClick)
✓ ANSWER ACCEPTED
What is Wrong With This Script?
1 answer
✓ Accepted answer
You're supposed to put it in a lua code block.
function onClick(mouse) script.Parent.Parent.Frame.Visible = true end script.Parent.MouseButton1Click:connect(onClick)
Your script basically has no problem, but make sure it's a button
This script will work in the following structure
-- Model
----Frame
----TextButton
------Script
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Try using TextButton instead of a Frame, if still doesn't work contact me and I'll see what I can do.