function Click() script.Parent.Parent.Frame.Visible= false script.Parent.Parent.ScrollingFrame.Visible = true end
script.Parent.MouseButton1Down:connect(Click)
I want it so when the text button is clicked it will switch to another frame but this won't work at all.

4 comments
14:46:45.000 - Frame is not a valid member of Frame
What line?
14:54:55.092 - Main is not a valid member of Frame 14:54:55.093 - Script 'Players.Player1.PlayerGui.ScreenGui.Main.TextButton.Script', Line 2
add another ".Parent" before ".Frame" and ".ScrollingFrame"