i have been running into this error, what i am trying to do is get an existing button and parent it to another frame, i am also getting this error:

 Frame is not a valid member of ScreenGui "BagGUI"

also the error above is saying "Frame" is not a valid member of BagGUI when i went in the gui and checked and it actually is

the script is working completely fine, just getting those errors