local charge = script:FindFirstChildWhichIsA(“Value”)
You need to specify what value type,
Which like said below me, in your case would be a Integer Value or Number value which can be referred to as local charge = script:FindFirstChildWhichIsA(“IntValue”) or local charge = script:FindFirstChildWhichIsA(“NumberValue”)
That’ll work probably because the name of the Value “instance” is “Value”. However if it was not, it wouldn’t work in this case, it’d just infinitely yield.
With WaitForChild() you’re waiting for a child with the name of the string you have in the function.