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?
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)