📜  roblox tweenservice - Lua 代码示例

📅  最后修改于: 2022-03-11 14:54:55.391000             🧑  作者: Mango

代码示例1
local TweenService = game:GetService("TweenService")

local part = script.Parent
local goal = {}
goal.Position = Vector3.new(1, 0, 1)
goal.Color = Color3.new(0, 1, 0) -- Green

local tweenInfo = TweenInfo.new(5)
local tween = TweenService:Create(part, tweenInfo, goal)
wait(5) -- Wait Time
tween:Play()