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.
Try this code (fixed):
script.Parent.MouseButton1Click:connect(function() script.Parent.Parent.Parent.Frame.Visible = false script.Parent.Parent.Parent.ScrollingFrame.Visible = true end)