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

How would I make it so when I click a button on the GUI it would go to another GUI?

I'm trying to make a database for my group using a ScreenGui and I need to make it so that if I was to click the "Suspension Form" text label it would transfer to another GUI where they would fill out the information, how could this be done?

script.Parent.MouseButton1Click:connect(function()
 print("Suspension Form has been clicked")
end)

2 comments

0

Just clone whatever gui you need to the plaeyrgui and if needed remove the current gui being clicked. Otherwise you can use several frames in one gui and have switch between what frames needed are visibile and which aren't inviisble.

0

I need both GUI's though

2 answers

Well my awnser would be using remote functions to invoke and send it to soming of your liking.

You could do something like this :

button = (button location)
gui = (location of the gui you want to open)

button.MouseButton1Click:connect(function()
	gui.Visible = true
end)

And make sure that the gui is not visible at the start.

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