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

What do I did wrong with this GUI?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

When the player will click the play button ( the text button), the screen Gui, image label and the text button to be invisibles. What do I did wrong?

local function Shy Game.ScreenGui.TextButton.MouseButton1Click = invisible end

Shy(Game.ScreenGui.TextButton.ImageLabel)

What do I did wrong?

0
Do you mean Visible? woodengop 1134 — 9y
0
nope victor52778 0 — 9y

1 answer

Log in to vote
1
Answered by
awfulszn 394 Moderation Voter
9 years ago
Edited 6 years ago

I THINK this is correct, but I am new to LUA so it might not be correct.

Shy = game.StarterGui.ScreenGui.Shy
TextButton = game.StarterGui.ScreenGui.TextButton
ImageLabel = game.StarterGui.ScreenGui.ImageLabel
PlayButton = game.StarterGui.ScreenGui.PlayButton

PlayButton.MouseButton1Down:connect(function(open)
    if Shy.Visible == false then
        Shy.Visible = true
        TextButton.Visible = true
        ImageLabel.Visible = true
        PlayButton.Visible = true
    else
        Shy.Visible = false
        TextButton.Visible = false
        ImageLabel.Visible = false
        PlayButton.Visible = false
    end
end)
Ad

Answer this question