Yuari
Documentation
Docs/Services/TweenService.Create

TweenService.Create

Compatibility shim returning a table with Play, Cancel, Pause, Destroy and a Completed signal.

Syntax

TweenService.Create(...) -> table

Parameters

ParameterTypeDescription
......Additional arguments forwarded to the target.

Returns

TypeDescription
tableTween

Description

TweenService.Create is part of the Services library. Service shims are pumped by the external tick loop and expose the parts of Roblox services the VM supports.

Each call creates or returns a fresh object or value that you can store and pass to other functions.

Example

local part = Instance.new("Part")
local tween = TweenService.Create(part, { Transparency = 1 })
tween.Completed:Connect(function()
    print("tween finished")
end)
tween:Play()

Notes

  • Service signals are pumped by the external tick loop.