I have been looking for this for long but I can’t find anything really. What’s meant to happen is simple, when Game1 TextButton gets clicked, the Frame01 becomes visible.
I really appreciate if anyone helps. Would be great if it’s possible to make it invisible after clicking it for the second time.
The local script you put into the TextButton indeed works, after clicking the Frame appears, but I don’t understand the rest
I wanna make it so after the Frame appears,(clicked the button) clicking the TextButton again makes it disappear,(i don’t want exit button inside the frame) I’m not sure where to put the last script (long one) at all
I did that and got following error:
Players.MATIEO33.PlayerGui.ScreenGui.TextButton.Game1.LocalScript:8: Expected identifier when parsing expression, got ‘)’
I asked a person on a discord server for help. Thanks to everyone else tho, you guys helped me too.
For anyone wondering what the code worked for me, it is this:
script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Parent.Frame01.Visible == false then
script.Parent.Parent.Frame01.Visible = true
else
script.Parent.Parent.Frame01.Visible = false
end
end)