배우기
엔진 클래스
TweenService
만들 수 없음
서비스

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.


요약
메서드
Create(instance: Instance,tweenInfo: TweenInfo,propertyTable: Dictionary):Tween
GetValue(alpha: number,easingStyle: Enum.EasingStyle,easingDirection: Enum.EasingDirection):number
SmoothDamp(current: Variant,target: Variant,velocity: Variant,smoothTime: number,maxSpeed: number?,dt: number?):Tuple
상속된 멤버
코드 샘플
트윈 생성
local TweenService = game:GetService("TweenService")
local part = Instance.new("Part")
part.Position = Vector3.new(0, 10, 0)
part.Color = Color3.new(1, 0, 0)
part.Anchored = true
part.Parent = game.Workspace
local goal = {}
goal.Position = Vector3.new(10, 10, 0)
goal.Color = Color3.new(0, 1, 0)
local tweenInfo = TweenInfo.new(5)
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
트윈 반복하기
local TweenService = game:GetService("TweenService")
local part = Instance.new("Part")
part.Position = Vector3.new(0, 10, 0)
part.Anchored = true
part.Parent = workspace
local tweenInfo = TweenInfo.new(
2, -- 시간
Enum.EasingStyle.Linear, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
-1, -- RepeatCount (영보다 작을 때 트윈이 무한히 반복됨)
true, -- Reverses (목표에 도달하면 트윈이 역으로 재생됨)
0 -- DelayTime
)
local tween = TweenService:Create(part, tweenInfo, { Position = Vector3.new(0, 30, 0) })
tween:Play()
task.wait(10)
tween:Cancel() -- 10초 후 애니메이션 취소
트윈 일시 정지
local TweenService = game:GetService("TweenService")
local part = Instance.new("Part")
part.Position = Vector3.new(0, 10, 0)
part.Anchored = true
part.BrickColor = BrickColor.new("Bright green")
part.Parent = workspace
local goal = {}
goal.Position = Vector3.new(50, 10, 0)
local tweenInfo = TweenInfo.new(10, Enum.EasingStyle.Linear)
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
task.wait(3)
part.BrickColor = BrickColor.new("Bright red")
tween:Pause()
task.wait(2)
part.BrickColor = BrickColor.new("Bright green")
tween:Play()

API 참조
메서드
Create
기능: Basic
TweenService:Create(
instance:Instance, tweenInfo:TweenInfo, propertyTable:Dictionary
매개 변수
instance:Instance
tweenInfo:TweenInfo
propertyTable:Dictionary
반환
코드 샘플
트윈 생성
local TweenService = game:GetService("TweenService")
local part = Instance.new("Part")
part.Position = Vector3.new(0, 10, 0)
part.Color = Color3.new(1, 0, 0)
part.Anchored = true
part.Parent = game.Workspace
local goal = {}
goal.Position = Vector3.new(10, 10, 0)
goal.Color = Color3.new(0, 1, 0)
local tweenInfo = TweenInfo.new(5)
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
트윈 반복하기
local TweenService = game:GetService("TweenService")
local part = Instance.new("Part")
part.Position = Vector3.new(0, 10, 0)
part.Anchored = true
part.Parent = workspace
local tweenInfo = TweenInfo.new(
2, -- 시간
Enum.EasingStyle.Linear, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
-1, -- RepeatCount (영보다 작을 때 트윈이 무한히 반복됨)
true, -- Reverses (목표에 도달하면 트윈이 역으로 재생됨)
0 -- DelayTime
)
local tween = TweenService:Create(part, tweenInfo, { Position = Vector3.new(0, 30, 0) })
tween:Play()
task.wait(10)
tween:Cancel() -- 10초 후 애니메이션 취소

GetValue
기능: Basic
TweenService:GetValue(
alpha:number, easingStyle:Enum.EasingStyle, easingDirection:Enum.EasingDirection
매개 변수
alpha:number
easingStyle:Enum.EasingStyle
easingDirection:Enum.EasingDirection
반환

SmoothDamp
병렬 쓰기
기능: Basic
시뮬레이션 액세스
TweenService:SmoothDamp(
current:Variant, target:Variant, velocity:Variant, smoothTime:number, maxSpeed:number?, dt:number?
매개 변수
current:Variant
target:Variant
velocity:Variant
smoothTime:number
maxSpeed:number?
dt:number?
반환

©2026 Roblox Corporation. Roblox 및 Roblox 로고, 'Powering Imagination'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.