How to make this?

Hello, I’m making the door sign to show this “P-000” or something like that using string.format but I don’t know how.

here is the line of the code that is used to show mentioned above:

doorModel.Sign.SurfaceGui.TextLabel.Text = string.format("%03d", number)

Any help is appreciated, thanks.

This may help.

I need to put the “P-” before the number so how can I do this?

You just need to add P-

doorModel.Sign.SurfaceGui.TextLabel.Text = string.format("P-%03d", number) --> P-000
1 Like

Thanks to you for solving my problem.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.