Help with Replacing Parent with WaitForChild

Hey everyone, so someone told me I had to use WaitForChild for this script, and since I’m a builder and have very basic knowledge on scripting I don’t know how to implement a WaitForChild function into line one can someone help me?

local frame = script.Parent.Parent.Parent.Music.Main - this line is the one I need help on
frame.Visible = false
if frame.Visible == false then
frame.Visible = true
frame.Visible == false then

for reference:

Music is parented to startergui

Sipmly, they wanted you to change this line to:
local frame = script.Parent.Parent.Parent:WaitForChild("Music"):WaitForChild("Main")