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.
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