textbut = script.Parent.Map
textbut.MouseButton1Click:connect(function()
if script.Parent.ScrollingFrame.Visible == true then
script.Parent.ScrollingFrame.Visible = false
textbut.Text = 'Open Map'
else
script.Parent.ScrollingFrame.Visible = true
textbut.Text = 'Close Map'
end
end)
I fixed it just a simple error with another script

1 comment
What error do you get in the Output?