How to open a frame by clicking on a textbutton? I need this plis , I can not understand much because I do not speak English, This will help me.
You should look into the events for textbuttons and the properties for frames. Textbuttons have an easy event that does what you are needing:
http://wiki.roblox.com/index.php?title=API:Class/GuiButton/MouseButton1Click
here's a basic function to get you started. It will trigger an event when the user clicks the button making the designated frame not visible.
someTextButton.MouseButton1Click:connect(function() someFrame.Visible = false end)
You can use IF statements to appropriately set the frame's visibility after determining if it is visible or not
This script will toggle it on / off depending on its current visibility, very straight - forward :) replace the paths to the frame and the button
--< Variables >-- local guiToClose = someFrame local button = someButton --< Functions >-- function toggleVisibility() guiToClose.Visible = not guiToClose.Visible end --< Connections >-- button.MouseButton1Clicked:connect(toggleVisibility)
enjoy, please comment any issues ! :)