X is not a valid member of Model

So I’ve run into a problem with a script I am writing for a project I’m working on, and I’m not sure what to do. I am trying to set a model’s parent to a folder within a player’s GUI, but it always gives me the error: “parent is not a valid member of Model”.

Code:
image

This is in a local script, but I tried a normal one just to check.
It doesn’t matter what I set the parent to.
CurrentDoor is an ObjectValue that is set to the model, and I’ve made sure it is set correctly.
I’ve setting Door directly using the model’s workspace hierarchy but it didn’t work.
If I move the parent assignment to the end, then I get an error saying “name is not a valid member of Model”

I wanted to figure it out myself but at this point it’s the only thing hindering my progress; any help is appreciated.

2 Likes

Door.Parent, you are not using a capital letter.

5 Likes

Yikes, I feel so dumb. Thanks

I’m bookmarking this.

4 Likes