Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can someone fix these two Open/Close Frame scripts?

function open()
if script.Parent.Text == "Options" then
script.Parent.Parent.OptionFrame.Visible = true
script.Parent.Text = "Close"
end
end

script.Parent.MouseButton1Down:connect(open)

This is the open script, that seems to be working, but for some reason the close (below) is not.

function close()
if script.Parent.Text == "Close" then
script.Parent.Parent.OptionFrame.Visible = false
script.Parent.Text = "Options"
end
end

script.Parent.MouseButton1Down:connect(close)

Can someone help me?

2 comments

0

It looks fine to me...

0

But it's not closing :/

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.