while wait() do
print(script.Parent.Parent.Amount.Value)
if script.Parent.Parent.Amount.Value > 0 then
script.Parent.Visible = true
script.Parent.Text = script.Parent.Parent.Amount.Value
elseif script.Parent.Parent.Amount.Value < 1 then
script.Parent.Visible = false
end
end
No Errors
The problem is that when i change the value of amount it still prints 0, so the text does not update even though the value of amount isnt 0
