hi, it’s me again,
I’m not very good at scripting
why this textbutton still visible in next frame? ( i want it to be just in the main menu frame not in tracks, the reazon is not in the main menu frame is that it doesnt work there)
Images:

the textbutton script:
local Button = script.Parent
Frame = script.Parent.Parent.Tracks —Enter Name Of Frame
function onClick()
if Frame.Visible == false then
Frame.Visible = true
elseif Frame.Visible == true then
Frame.Visible = false
end
end
Button.MouseButton1Click:connect(onClick)
How can i fix this?
thanks