Tween
Transparency
local part = script.Parent
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(
5, --Time
Enum.EasingStyle.Linear, --Easing Style
Enum.EasingDirection.Out, --EasingDirection
-1, --Repeat Count
true, --Reverse
0 --DelayTime
)
local tween = TweenService:Create(part, tweenInfo, {Transparency = 1})
tween:Play()
Color
local part = script.Parent
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(
5, --Time
Enum.EasingStyle.Linear, --Easing Style
Enum.EasingDirection.Out, --EasingDirection
-1, --Repeat Count
true, --Reverse
0 --DelayTime
)
local tween = TweenService:Create(part, tweenInfo, {Color = Color3.fromRGB(0, 0, 255)})
tween:Play()
Size
local part = script.Parent
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(
5, --Time
Enum.EasingStyle.Linear, --Easing Style
Enum.EasingDirection.Out, --EasingDirection
-1, --Repeat Count
true, --Reverse
0 --DelayTime
)
local tween = TweenService:Create(part, tweenInfo, {Size = Vector3.new(8,8,8)})
tween:Play()
Orientation
local part = script.Parent
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(
5, --Time
Enum.EasingStyle.Linear, --Easing Style
Enum.EasingDirection.Out, --EasingDirection
-1, --Repeat Count
false, --Reverse
0 --DelayTime
)
local tween = TweenService:Create(part, tweenInfo, {Orientation = Vector3.new(0,180,0)})
tween:Play()
Position with Target Part
Don't forget to name the target part "Target"
local part = script.Parent
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(
5, --Time
Enum.EasingStyle.Linear, --Easing Style
Enum.EasingDirection.Out, --EasingDirection
-1, --Repeat Count
true, --Reverse
0 --DelayTime
)
local tween = TweenService:Create(part, tweenInfo, {Position = game.Workspace.Target.Position})
tween:Play()