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

What is the problem?

Asked by 10 years ago
Frame = game.StarterGui.ScreenGui.GameInfo

function onClicked()
    Frame.Visible = true
end

script.Parent.MouseButton1Click:connect(onClicked)

I am trying to make a frame which is out of the script's parents invisible.

0
I mean visible. StickMasterNinja2 0 — 10y

2 answers

Log in to vote
4
Answered by
NotSoNorm 777 Moderation Voter
10 years ago

Guis only use MouseButton1Down's

Frame = game.StarterGui.ScreenGui.GameInfo

script.Parent.MouseButton1Down:connect(function()
    Frame.Visible = true
end)



0
Still don't works, the frame which is visible will be invisible but the other frame still is invisible. StickMasterNinja2 0 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

It seems like you are trying to fire MouseButton1Click on a frame. This can only be fired on ImageButtons, TextButtons, or anything with buttons. Try to make the path go to a textbutton and then try it

0
And the game.StarterGui.ScreenGui.GameInfo? StickMasterNinja2 0 — 10y

Answer this question