To create a script that opens a frame GUI when a TextButton is clicked, you can use the following code;
local button = script.Parent -- Assuming the script is placed inside the TextButton
local frame = -- Replace "FrameName" with the name of your frame GUI
script.Parent.Parent:WaitForChild("FrameName")
button.MouseButton1Click:Connect(function()
frame.Visible = true -- Show the frame GUI when the button is clicked
end)