How to tweensize part

How to tweensize part using tweenservice

1 Like

Here are some links that should help you!

https://developer.roblox.com/en-us/api-reference/class/TweenService

how to use tweenservice make all the part fly away and after 10 second the part fly back

local Part = script.Parent -- change this if script is not inside "Part"
local TS = game:GetService("TweenService") 

local Object = Part -- Object you want to tween
Object.Position = Part.Position

local startGoal = {}
startGoal.Position = Vector3.new(X, Y, Z)

local endGoal = {}
endGoal.Position = Vector3.new(X, Y, Z)

local tweenStart = TS:Create(Object, TweenInfo.new(1),  startGoal)
local tweenEnd = TS:Create(Object, TweenInfo.new(1),  endGoal)

tweenStart:Play()
task.wait(11)
tweenEnd:Play()

can i change the part to map:GetChildren() ?

and what is startgoal where is startgoal

1 Like

Well, if it suit your work. I won’t mind.

Start goal is basically the direction of (Part) is tweened into
It can be a Vector3 or Example.Position