How to put a slash in between two numbers

Please tell me if this is I the wrong category.

I am making a gun, and I have a gui that shows how much ammo you have. The problem is, I want to show it like how Jailbreak does it with a slash in between how much you have and the max, but what it does instead is divide the two numbers. How can I fix this?

1 Like
local num1,num2 = 1, 2
print(('%d / %d'):format(num1,num2))
2 Likes

Could you possibly explain how this works and what other things like this I could do? If you have a link to a dev hub article about this I would like that!

sorry i was sleeping, iā€™m using string formatting [%d is for numbers]. string formatting

1 Like