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

Why isnt my "Click button to open frame" thing not working?

So, i've tried doing this a few times but it just hasnt been working, can some one please tell me if im doing any thing wrong & how to fix it.

Box = script.Parent.Box

Button = script.Parent.Button

Button.MouseButton1Down:connet(function() if Box.Visible=true then Box.Visible=false Button.Text="Information" else Box.Visible=true Button.Text="Close" end end)

There is my script.

1 comment

0

Fixed it. It was a small typo.

1 answer

Well, you could make it even simpler than that.

Box = script.Parent.Box

Button = script.Parent.Button

Button.MouseButton1Down:connet(function()
	if Box.Visible=true then
		Box.Visible=false
		Button.Text="Information"
	else
		Box.Visible=true
		Button.Text="Close"
	end
end)

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