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

I can access the specific players with a server script but not the children of players?

Asked by 4 years ago

This might be a really dumb question but I couldn't find anything online so I figured I would ask it here. The title basically explains it all. I can access a player with for index, value in pairs(Players:GetChildren) with a server script, but when I try to do value.sickWith (A string value stored in each player), it says "sickWith is not a valid member of value". value is definitely the player, and sickWith is definitely in there, so I don't really know why it can't find it.

0
I don't really understand what you did. Could you show your script? AntiWorldliness 868 — 4y

1 answer

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

X is not a valid member of Object indicates that X was not found to be a hierarchy child, or property field of Object.. therefore, you need to check to make sure the capitalization is correct.. you can further get useful feedback by doing object:WaitForChild(child_name), the method will write out warnings if the child is not found after a while, and therefore a good tool to make sure the object is being instantiated into a player Object

and also check to make sure the code that initializes the object into player is doing it, and you can also open the hierarchy to see if the object is there

0
It is definitely for sure there and all spelling is correct, yet it insists that sickWith is not there... eyeball001 7 — 4y
Ad

Answer this question