Attempt to index nil with "WaitForChild"

Hello, I am making an army game similar to those games in the Pet Simulator franchise, and I have come across this issue where it won’t let me do WaitForChild() on a value. The value is inside of a folder in the player.

Script:

local activatedAlready = false
local player = game:GetService(“Players”).LocalPlayer
print(player)
local folder = player:WaitForChild(“Values”)
local attackingObject = folder:WaitForChild(“AttackingObject”)
local connection
connection = folder.AttackingObject.Value.Changed:Connect(function()
local partAttacked = workspace:FindFirstChild(player.Values.AttackingObject.Value)
print(partAttacked)

This is my first time posting on the forums, if you need more explanation you can ask me. Thank you!