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

Version is not a valid member of Configuration... but it is?

Asked by 6 years ago

So I have this simple code:

local Config = Parent:WaitForChild('Config');
...
local Version = Parent:WaitForChild('Version').Value;

And it always gives me the infinite yield warning. I try:

local Version = Parent.Version.Value;

And it says "Version is not a valid member of Configuration".

Here's the thing though, I have a value in Config called Foobar and I can access that perfectly fine.

Screenshot of Config folder

What's happening here?

0
Is casing all correct? If it's called "version" all lowercase, you'll need to modify your scripts so it's lowercase. User#19524 175 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I believe your problem is that you have the path to the Version variable wrong.

local Config = script.Parent:WaitForChild('Config');
...

local Version = script.Parent:WaitForChild('Version').Value;

See if that works!

Ad

Answer this question