Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is Wrong With This Script?

function onClick(mouse) script.Parent.Parent.Frame.Visible = true end script.Parent.MouseButton1Click:connect(onClick)

1 comment

0

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

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.