When I Kill a Humanoid, How to change the value on a number value in replicated storage?
So when I do an "if" statement, which dose not work, it wont give me + 5 in value towards the NumberValue found in Replicated storage
Example:
1 | local Cash = game.ReplicatedStorage:WaitForChild( "NumberValue" ) |
2 | local HP = script.Parent.Health |
end)
now NumberValue is my Value I call "cash", and I need when the Humanoid his <= 0 then will give + 5 value once.
I dont want an if statement but more of a way to figure this out
Conclusion
NumberValue is added 5 every time the humanoid dies (hits 0 Health)
Thanks For your awnsers!