NumberSpinner Module

As much as I love the functionality of this module, I probably won’t use it until it supports TextScaled, as currently, I don’t enough control over the sizing of the text.

2 Likes

I would also love to use this, but without the support of TextScaled it is pretty much unusable for me. Hope there is a way that support for TextScaled gets introduced in the future!

2 Likes

Is there a way to achieve this using a string instead of a number, or atleast achieving the old string moving down and the new one coming from above and taking its place?

1 Like

This module has so much potential, it’s just missing a few key features.

  • TextScaled working properly
  • Commas, for bigger numbers (should be: 1,000,000, currently: 1000000)

Anyways, thanks for the great module and I hope you get motivation to continue on it!

1 Like

it is 1,000,000 and not 1000000

Capture

1 Like

You should add support for abbreviations. Like for example 1,000 would be listed as 1K, 1,000,000 would be 1B etc. I think that would be really cool. But other than that this is a great resource! Thanks!

1 Like

image
It seems as these number values don’t get ZIndex set according to properties!
Simple fix is just to change it in the module manually! Just thought I’d bring attention to it since it took a lil bit of troubleshooting to find why the numbers weren’t appearing.

2 Likes

How do you change the position @boatbomber ?

1 Like

I want this to happen. I think this can be possible through looping number frame by using some kind of % operator.

1 Like

How would I add these animations to a TextLabel that already exists?

1 Like

you can use .fromGuiObject() to convert your label into a number spinner

1 Like

How do you make the animations like this mitu?
Yours:

`
I want to know how to animate it like yours since mine just does this.

2 Likes

For TextScaled support:

-- Add 'TextScaled' to CUSTOM_PROPS
local CUSTOM_PROPS = {
	Value = "number";
	Duration = "number";
	Decimals = "number";
	Prefix = "string";
	Suffix = "string";
	Commas = "boolean";
	TextScaled = "boolean";  -- Add this
}

-- Modify the __newindex function to support 'TextScaled'
if key == "TextScaled" then
	for i, Digit in pairs(Spinner.Digits.Whole) do
		Digit.TextScaled = value
	end

	for i, Digit in pairs(Spinner.Digits.Decimal) do
		Digit.TextScaled = value
	end

	for i, Comma in pairs(Spinner.CommaLabels) do
		Comma.TextScaled = value
	end

	Spinner.PrefixLabel.TextScaled = value
	Spinner.SuffixLabel.TextScaled = value
	Spinner.DecimalLabel.TextScaled = value
	Spinner.NegativeLabel.TextScaled = value

	return
end
3 Likes

Thank you bro, i really needed this too so it helped me a lot!

1 Like

Is there a way to make the font bold?

1 Like

Trying to use this for a BillboardGui, but it doesn’t seem to be working.

1 Like

fontface support when

char limit

1 Like

Since I use this library and I use newer fonts as well. I have created a pull request to support FontFace. The updated code is available in the fork for the PR.

2 Likes

Pulled in some of your changes and updated the module. Thanks for contributing!

1 Like

Hey @boatbomber can you add a support for abbreviations like “K” or “B” it would really help, thanks!

1 Like