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

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

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?

1 comment

0

Is casing all correct? If it's called "version" all lowercase, you'll need to modify your scripts so it's lowercase.

1 answer

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!

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