Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What is wrong with this script?

So here is the script, it stack ends on the first line

bin = script.Parent.Main.Base

Output says that Base is not a valid member of Model

The scripts parent is called Flag.

There is nothing called Model in Flag.

How do I fix it?

5 comments

0

..

0

I love this. "Make the question title relevant to the question content" It looks like i had trouble with this script, and I wanted to know what was wrong it it. The owner needs to be more careful who he gives admin powers to it seems

0

1 line is a script?

0

its the first line of the script, which was stack-ending the rest, I fixed it with :WaitForChild("Base")

0

Hello Temp, I was the one who put that note there. Question titles should not be "What is wrong?" It should be, in this case, something along the lines of: "Indexing variables help." As well, your comments on the abuse report, along with this post, are inappropriate, and should not happen again. Thanks .

1 answer

Base is not a valid member of Model

That doesn't mean that Base is not a valid member of a child named Model. Model is the ClassName of the object you're searching in. Maybe you're searching in the wrong thing? Can you give a screenshot of your hierarchy? (I'll update this answer if you do ;) )

1 comment

0

I fixed the problem. I should have used :WaitForChild("Base") but, thanks for your help.

This discussion is preserved as it was. New answers, comments, and votes are closed.