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

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

Asked by 7 years ago
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.

0
Try WaitForChild() TheHospitalDev 1134 — 7y
1
How are you defining player, and is this a local script? M39a9am3R 3210 — 7y
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. duckwit 1404 — 7y
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. User#5423 17 — 7y
View all comments (2 more)
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. HMNapoleon 35 — 7y
0
Is there something in the player called Member? GuestRealization 102 — 7y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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(" ")

Ad

Answer this question