Gui text script

Im making an ammo system for my gun so im starting bits at a time. Im having trouble getting the value from a script and putting it into text. Can I get some help.

image

ive tried same code in a script instead of local script still didnt work

You need to use concatenation or string.format

script.Parent.Text = dog .. "/10"
-- or
script.Parent.Text = string.format('%d/10', dog)
2 Likes