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.
01 | Shy = game.StarterGui.ScreenGui.Shy |
02 | TextButton = game.StarterGui.ScreenGui.TextButton |
03 | ImageLabel = game.StarterGui.ScreenGui.ImageLabel |
04 | PlayButton = game.StarterGui.ScreenGui.PlayButton |
05 |
06 | PlayButton.MouseButton 1 Down:connect( function (open) |
07 | if Shy.Visible = = false then |
08 | Shy.Visible = true |
09 | TextButton.Visible = true |
10 | ImageLabel.Visible = true |
11 | PlayButton.Visible = true |
12 | else |
13 | Shy.Visible = false |
14 | TextButton.Visible = false |
15 | ImageLabel.Visible = false |
16 | PlayButton.Visible = false |
17 | end |
18 | end ) |