I made a simple piece of code for an ammo system that I was making. This is the script that I made:
script.Parent.ammo.Value = script.Parent.ammo.Value - 1
For some reason, it won't subtract the value and I'm 1000% certain that I did type the code correctly. Is this some ROBLOX bug? Because no error outputs are showing up either.

3 comments
Did you try adding a line after the code for print(script.Parent.ammo.Value)
Make sure your script isn't disabled
OMG IM DUMB LOL! The gui text didn't go down each click because I did script.Parent.Gui.Ammo instead of script.Parent.Gui.Ammo.Text, in simpler words, I just forgot .Text, smhhhh lol..