i have been making a racing game but i have a script problem:

https://drive.google.com/file/d/11Kd8_w-IgP_pvPnrJRO3HaSFaGwORJWe/view?usp=sharing here the text button is in main menu frame, here is the script:

local Button = script.Parent Frame = script.Parent.Parent.Tracks-- is the name of the frame i want to open

function onClick() if Frame.Visible == false then Frame.Visible = true elseif Frame.Visible == true then Frame.Visible = false end end

Button.MouseButton1Click:connect(onClick)

it works but :

https://drive.google.com/file/d/1iLSp-9eoZnqCBtV3Uj85PbeU5yMZYPTS/view?usp=sharing

the text button is in the next frame and that is what i dont want

What do i need to change to make the text button dont appear in the other frame(tracks)