Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

What is wrong with this script?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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?

0
.. Tempestatem 884 — 10y
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 Tempestatem 884 — 10y
0
1 line is a script? xolbStudios 127 — 10y
0
its the first line of the script, which was stack-ending the rest, I fixed it with :WaitForChild("Base") Tempestatem 884 — 10y
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 . AmericanStripes 610 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

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 ;) )

0
I fixed the problem. I should have used :WaitForChild("Base") but, thanks for your help. Tempestatem 884 — 10y
Ad

Answer this question