I am trying to access the value "Needs" in a regular script from the player like this.
local char = tool.Parent
local player = game.Players:GetPlayerFromCharacter(char)
local needs = player.Needs
Error in output: "Needs is not a valid member of Player"
Anybody know why this error keeps happening? I even tried to do a :WaitForChild() but it then says there's an infinite yield trying to find "Needs." Needs has been inputted into the player yet the server still cannot find it.

3 comments
What is the script adding "Needs" to the member player?
It's not adding anything, "Needs" is the parent of multiple values. I'm trying to access needs so I can access the values in it but apparently it cannot find "Needs."
Include more detail, put in all of the lines of code in the script.