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

value is not a valid member of Folder??

I tried the solution to my previous problem but it's not working :/

script--

if #Obby.ObbyInfo.TempContestants.Value <= 1 then

Please help. And don't take it down as it is a different script. Thanks

4 comments

0

TempContestants is a folder, not a value object. Maybe you meant to refer to a value inside the folder?

0

there is nothing inside of the folder @mattscy. I tried removing everything at the end but the previous error shows.

0

What are you trying to do? If there is nothing inside the folder, Value is neither a property or a child of the folder.

0

O.o , mind blown

1 answer

✓ Accepted answer

You are getting the value from a folder which is not possible. I am assuming that you are looking to get the number of contents from the folder. To do this you will have to use #, which you already have, but # only returns the number of contents from a table and this is not a table. To turn this into a table, you need to use the :GetChildren() method. Replace the line with

if #Obby.ObbyInfo.TempContestants:GetChildren() <= 1 then

1 comment

0

Thank you!

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