I'm making a Value that shows in a GUI. I'd like to know how to make the text say 1.34B when the player has 1345869475 "dollars", but it comes up as 1.345869475B. Can someone help me simplify this?
while wait() do
Value = script.Parent.Parent.Parent.Parent.Parent.NPCNumber.Warrior.Value
if Value < 1000000 then script.Parent.Text = Value
else if Value >= 1000000 and Value < 1000000000 then script.Parent.Text = (Value/1000000).."M"
else if Value >= 1000000000 and Value < 2147483647 then script.Parent.Text = (Value/1000000000).."B"
else if Value == 2147483647 then script.Parent.Text = "MAX"
end
end
end
end
end
Any help is appreciated THANKS!

4 comments
I'm new to the site, so it would help me if you could tell me how to put the code into context similar to the example you showed.
click the button above the text box that says Lua...and then type in between the ~~~~'s
And this worked! Thanks!
Alright, thanks. Glad to help.