Forest Logo
search
package_2

cifra

By @arensiboi

Roblox

Mirrored

CIFRA

About

⚠️ PRE-ALPHA ⚠️

Cifra is a modernized number spinner for Roblox.

Heavily inspired by NumberSpinner by BoatBomber. Cifra was created for a project of mine.

Why Cifra?

At this moment in Cifra's development, I would NOT recommend Cifra to be used in devlopment. Cifra lacks several features for proper development. Feel free to mess around with it tho. :D

Basic Usage

Cifra is strictly client based. It has a similar 'Instance' approach for the creation of the spinner.

local CifraSpinner = require("@game/ReplicatedStorage/Cifra") --or any other path to cifra

local spinner = CifraSpinner.new()
    spinner.TextTemplate = script.Template --assume script.Template exist and is a TextLabel
    spinner.Speed = 2 --The higher the integer, the slower is tween animation is
    spinner.Value = 10
spinner:SetParent(script.Parent) --assuming script.parent is a screengui instance lol

spinner:Update()

EXAMPLES

TIMER

const TIME: number = 20

local spinner = CifraSpinner.new()
    spinner.Format = function(value: number)
        return string.format("%02d:%02d", value/60%60, value%60)
    end
spinner:SetParent(script.Parent)


for i = TIME, 0, -1 do
    spinner.Value = i
        spinner:Update()
    task.wait(1)
end

DECIMAL


local spinner = CifraSpinner.new()
    spinner.Format = function(value: number)
        return string.format("%.2f", value)
    end
    spinner.Value = 0.1
spinner:SetParent(script.Parent)

spinner:Update()

Package Details

Install command (Click to copy)


Version

0.1.0

License

MIT

check_circle

Safe for commercial use

Automated license review — not legal advice.