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

What do I did wrong with this GUI?

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?

2 comments

0

Do you mean Visible?

0

nope

1 answer

✓ Accepted answer

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)

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