I have a textbox in a surfaceGui and I'm trying to make it so that if the value of a NumberValue within the model goes up the text changes accordingly. The code I have works but if the value increases/decreases it will remain at 500. No errors.
if script.Parent.Value == 500 then
script.Parent.Parent.SurfaceGui.Frame.TextBox.Text = script.Parent.Value .. " , 7.62x51mm BOX MAGAZINES"
end

2 comments
Thanks for the suggestion but could you please define or specify "Property" because the same issue occurs.
Ah, sorry about that. I updated my answer, and I believe it should work now. No need for the Property, because it's a NumberValue, and Value is the only thing that will be changing anyways.