Can't decrease a number value

Hi! So I found a problem today. I can’t decrease a number value with my script. Any way to fix this? Here’s the code if you want to look at.

local value = script.Parent.Health.Value

value = value - 50
1 Like

You are not storing the object, you are storing it is value. Instead delete .Value in the variable and do,

value.Value = value.Value - 50