TweenService | Documentation - Roblox Creator Hub
A paragraph in the description states that TweenService only has one function when it has two (Create, GetValue).
TweenService has just one function,
TweenService:Create
, which takes information about the animation and generates theTween
object which can be used to play the animation. Note thatTween
s can animate multiple properties at the same time.
A list is given of all tweenable types, but tis missing EnumItem.
Note that only specific types of properties can be used with TweenService. The types of properties that can be tweened are:
- number
- bool
CFrame
Rect
Color3
UDim
UDim2
Vector2
Vector2int16
Vector3
An example of tweening an EnumItem property:
local t = game:GetService"TweenService"
local p = Instance.new"Part"
p.Shape = 0
p.TopSurface = 0
p.BottomSurface = 0
p.Size = Vector3.new(1,1,1)
p.Position = Vector3.new(0,100,0)
p.Parent = workspace
local i = TweenInfo.new(
.1,
0,
2,
-1,
false,
0
)
local c = {
Shape = 2
}
t:Create(p,i,c):Play()