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

Particular object Is not a valid member of the player; weird?

local mfolder = player["Member"]

mfolder.ChildAdded:connect(function()
-- and the script goes on.

This two lines; terrifying and crucial to what I have made. several minutes ago, i have performed a smooth test.

After minutes of more scripting, i experienced an error that bothered me for more than an hour.

The output states 'Member is not a valid member of the player' well, it's quite simple as it may sound but the problem is nowhere in the script nor the workspace. It's weird and it interferes my work.

I've searched google for answers, i don't think that helped me. I tried changing it to :WaitForChild but the line won't respond. Into :findFirstChild and it has the same error although quite more longer and complicated although it explains the same thing.

Here's a convincing photo. https://gyazo.com/e2c7471b09de6b6e5fe39c69ecdf2e1a

If there's a simple, SIMPLE line or adjustment that i'm blind to see, please respond and i might give it a try.

6 comments

0

Try WaitForChild()

1

How are you defining player, and is this a local script?

0

I had this problem before. In my scenario, a LocalScript inserted some folder structures into their Player instance, filtering was enabled, and the server was trying to access those resources. Check that you're not doing something similar.

0

Can you include more information such as the type of script, location of the script, how the folder is being added and more of the script where the error is.

0

The script is a 'Localscript' that is applied to the 'StarterGUI'; the Folder is added by a script that is placed in the StarterPlayerScript. I tried adding some "wait" or anything that can delay it although none of the above worked.

0

Is there something in the player called Member?

1 answer

I have this happen to me every time. It tinks i am stating a value or 'Model', or in this case, 'Player', and all you need is

FindFirstChild(" ")

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