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

What is Wrong With This Script?

Asked by 9 years ago

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

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

1 answer

Log in to vote
0
Answered by 9 years ago

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
Ad

Answer this question