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

What is the problem?

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.

1 comment

0

I mean visible.

2 answers

Guis only use MouseButton1Down's

Frame = game.StarterGui.ScreenGui.GameInfo

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



1 comment

0

Still don't works, the frame which is visible will be invisible but the other frame still is invisible.

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

1 comment

0

And the game.StarterGui.ScreenGui.GameInfo?

This discussion is preserved as it was. New answers, comments, and votes are closed.