Everything works fine in studio, but in an actual server when I click the button the frame doesn't open. Please help me.

Music = script.Parent.Parent.Parent.Music

script.Parent.MouseButton1Click:connect(function()
	if Music.Visible == false then
		Music.Visible = true
	else
		Music.Visible = false
	end
end)

1 comment

0

The question title needs to directly refer to what you're asking, Why won't this work? doesn't help, if you have a visibility issue then say that in the title, so if someone who is good with visibilty can come here and answer it for you. Why won't this work? makes everyone know you haven't read the "How to ask a question" page.