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
script.Parent.MouseButton1Click:Connect(function()
if frame.Visible == false then
frame.Visible = true
elseif
frame.Visible == false then
end
end)
for reference:
Music is parented to startergui