I have a value inside of a folder in ReplicatedStorage. Each value is named after the player and there is nothing wrong with the code of instantiating this value. The only issue I'm having is changing the value.
Here is the code
local fold = game.ReplicatedStorage:WaitForChild("Values")
function tou(hit)
if hit.Parent.Humanoid ~= nil then
local name = hit.Parent.Name
wait(.5)
fold.name.Value = fold.name.Value + 1
end
end
script.Parent.Touched:Connect(tou)
The error message is:
20:03:48.182 - Workspace.Part.Script:7: attempt to perform arithmetic on field 'Value' (a nil value)
Any help is appreciated :)

6 comments
Thank you for this advice i will try it out
Can you elaborate a bit more on using Instance:FindFirstChild()
For example, hit.Parent:FindFirstChild("Humanoid")
Thank you again for the help
No problem, please accept my answer and/or vote on it if helped! :)
Why'd the parent be a body part? Isn't a body part touching the part, not a descendant?