local Part = script.Parent
local TweenService = game:GetService("TweenService")
local Settings = TweenInfo.new(
1, -- duration of the tween
Enum.EasingStyle.Elastic, -- how your tween will look
Enum.EasingDirection.InOut, -- how your tween will play or end
0, -- amount of repeats
true -- reverses the tween after it's done
)
local TargetSize = 10 -- amount of studs to add to the part's size
local Goal = {
Size = Part.Size + Vector3.FromAxis(Enum.Axis.X) * TargetSize,
Position = Part.Position + Vector3.FromNormalId(Enum.NormalId.Left) * TargetSize / 2
}
local Tween = TweenService:Create(Part, Settings, Goal)
task.wait(3)
Tween:Play() -- plays the tween
if you want it to scale on both sides… change the goal to this
if you want to scale it on a different face… change the axis and normalid accordingly X is Left and Right Y is Top and Bottom Z is Front and Back
unless if you changed the orientation…
local Part = script.Parent
local TweenService = game:GetService("TweenService")
local Settings = TweenInfo.new(
1, -- duration of the tween
Enum.EasingStyle.Elastic, -- how your tween will look
Enum.EasingDirection.InOut, -- how your tween will play or end
0, -- amount of repeats
true -- reverses the tween after it's done
)
local TargetSize = 10 -- amount of studs to add to the part's size
local Goal = {
Size = Part.Size + Vector3.FromAxis(Enum.Axis.X) * TargetSize,
Position = Part.Position + Vector3.FromNormalId(Enum.NormalId.Left) * TargetSize / 2
}
local Tween = TweenService:Create(Part, Settings, Goal)
task.wait(3)
Tween:Play() -- plays the tween
local Goal = { -- Axis of the Face you want to Scale --
Size = Part.Size + Vector3.FromAxis(Enum.Axis.Z) * TargetSize,
Position = Part.Position + Vector3.FromNormalId(Enum.NormalId.Front) * TargetSize / 2
} -- The Face you want to scale --
here’s a guide
add a decal to the part if you’re having a hard time