Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How exactly do I make a comma in a number? [closed]

Asked by 4 years ago

This question already has an answer here:

How to add comma's in an updating number value?

I'm trying to make a comma in a number (250436186) but I want it to say 250,436,186. I know I can use If statements, But I want like the text to change...

Heres what I got (With IF STATEMENTS)

local Text = game.Workspace.Sign.Gui.TEXT

if Text.Text == "250436186" then
    Text.Text = "250,436,186"
end

But What if I wanted a For i statement? That's what I'm trying...

Heres what I got

local Text = game.Workspace.Sign.Gui.TEXT

for i = 1000,600000000,554 do
    if i ~= 1 then
        Text.Text = i
    end
    wait(0.01)
end

I'm trying to add a comma into The I statement That's all I'm doing...

Marked as Duplicate by LukeSmasher, DeveloperSolo, and hiimgoodpack

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 4 years ago

Answered here

Ad