i dont know how to di it no when will help me please help
COMMUNITY QUESTION
how do i make it so when i click a text button it opens a gui thingy in roblox game maker thing?
1 answer
I'm assuming that the GUI you wish to open is a custom (not default) ScreenGui. With this in mind,
For GUI buttons
Insert a LocalScript into the TextButton. The LocalScript should now contain print("Hello world!"). Delete that and paste this into the LocalScript and follow the green instructions:
local gui = game.Players.LocalPlayer.PlayerGui.ScreenGui -- replace "ScreenGui" with the name of the gui you want to appear
script.Parent.MouseButton1Click:Connect(function()
gui.Visible = (not gui.Visible)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
text buttons have an event called MouseButton1Click that fires why someone clicks on it with the lmb
ok so how do i make it work
you use it :p
https://scriptinghelpers.org/help/how-post-good-questions-answers