DoTween||doc136767

September 20, 2022

Format

Window:DoTween(tweenInfo, properties)

Describe

Create and start jogging animation. You can make different animation effects by passing in different jogging information and changing attributes.

parameter

Variable name Type Describe
tweenInfo TweenInfo Jog information
properties table<string, variant> Change attribute

The data types that support Tween are:
· number
· Vector3
· Vector2
· Color3
· string
· bool

Return value

Type Describe
Tween Tween instance

Code example

Linear, from fully transparent to fully opaque, and double the size of the slow animation within 1 second.

local winShop = UI:CreateGUIWindow("testShop")
local buyBtn = winShop.buyBtn
buyBtn.Alpha = 0
buyBtn.AbsolutelySize = Vector2.new(50, 50)

local easeCurve = EaseCurve.new(Enum.EaseType.Linear)
local tweenInfo = TweenInfo.new(1, easeCurve)
local properties = {
    Alpha = 1,
    AbsolutelySize = Vector2.new(100, 100)
}
buyBtn:DoTween(tweenInfo, properties)