Skip to main content

TimedTween

Tween that is a specific time, useful for countdowns and other things

Functions

new

TimedTween.new(
transitionTimenumber?--

Optional

) → TimedTween

Timed transition module

SetTransitionTime

TimedTween:SetTransitionTime(transitionTimenumber | Observable<number>) → MaidTask

Sets the transition time

GetTransitionTime

TimedTween:GetTransitionTime() → number

Gets the transition time

ObserveTransitionTime

TimedTween:ObserveTransitionTime() → Observable<number>

Observes the transition time

ObserveRenderStepped

TimedTween:ObserveRenderStepped() → Observable<number>

Observes how far into the transition we are, from 0 to 1

ObserveOnSignal

TimedTween:ObserveOnSignal(signalSignal) → Observable<number>

Observes the transition on a specific signal

Observe

TimedTween:Observe() → Observable<number>

Observes the transition

PromiseFinished

TimedTween:PromiseFinished() → Promise

Promises when the tween is finished

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Timed transition module",
            "params": [
                {
                    "name": "transitionTime",
                    "desc": "Optional",
                    "lua_type": "number?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "TimedTween"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 29,
                "path": "src/timedtween/src/Shared/TimedTween.lua"
            }
        },
        {
            "name": "SetTransitionTime",
            "desc": "Sets the transition time",
            "params": [
                {
                    "name": "transitionTime",
                    "desc": "",
                    "lua_type": "number | Observable<number>"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "MaidTask"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 62,
                "path": "src/timedtween/src/Shared/TimedTween.lua"
            }
        },
        {
            "name": "GetTransitionTime",
            "desc": "Gets the transition time",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 71,
                "path": "src/timedtween/src/Shared/TimedTween.lua"
            }
        },
        {
            "name": "ObserveTransitionTime",
            "desc": "Observes the transition time",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<number>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 80,
                "path": "src/timedtween/src/Shared/TimedTween.lua"
            }
        },
        {
            "name": "ObserveRenderStepped",
            "desc": "Observes how far into the transition we are, from 0 to 1",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<number>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 89,
                "path": "src/timedtween/src/Shared/TimedTween.lua"
            }
        },
        {
            "name": "ObserveOnSignal",
            "desc": "Observes the transition on a specific signal",
            "params": [
                {
                    "name": "signal",
                    "desc": "",
                    "lua_type": "Signal"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<number>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 99,
                "path": "src/timedtween/src/Shared/TimedTween.lua"
            }
        },
        {
            "name": "Observe",
            "desc": "Observes the transition",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<number>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 122,
                "path": "src/timedtween/src/Shared/TimedTween.lua"
            }
        },
        {
            "name": "PromiseFinished",
            "desc": "Promises when the tween is finished",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 131,
                "path": "src/timedtween/src/Shared/TimedTween.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "TimedTween",
    "desc": "Tween that is a specific time, useful for countdowns and other things",
    "source": {
        "line": 6,
        "path": "src/timedtween/src/Shared/TimedTween.lua"
    }
}