Roblox Studio TweenService Example in lua 2020
snippet in lua

Roblox Studio TweenService Example in lua 2020

user4326

local TweenService = game:GetService("TweenService")
local Part = script.Parent

local info = TweenInfo.new(
	5, 
	Enum.EasingStyle.Sine,
	Enum.EasingDirection.Out,
	0,
	false,
	0
)

local Goals = 
{
	Size = Vector3.new(15,15,15);
}

local MakePartBigger = TweenService:Create(Part, info, Goals)

wait(5)
MakePartBigger:Play()

roblox tweenservice

user2209

local goal = {}
goal.Position = Vector3.new(part.Position.X, part.Position.Y+10, part.Position.Z)
 
local tweenInfo = TweenInfo.new(5)
 
local tween = TweenService:Create(part, tweenInfo, goal)
 
tween:Play()