The thing is:
--// Services
local TweenService = game:GetService("TweenService");
--// Settings
local ANIMATION_TIME = 2; --> Tween animation period.
local Y_INCREMENT = 0;
local X_INCREMENT = 5;
local Z_INCREMENT = 0;
--// Dependencies
local Part = script.Parent.Parent;
local ClickDetector = script.Parent;
--// Functions
ClickDetector.MouseClick:Connect(function()
local TweenInfo = TweenInfo.new(ANIMATION_TIME , Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 0, false, 0)
local Goal = {
Size = Part.Size + Vector3.new(X_INCREMENT, Y_INCREMENT, Z_INCREMENT),
CFrame = Part.CFrame * CFrame.new(X_INCREMENTO / 2, 0, 0)
}
local myTween = TweenService:Create(Part, TweenInfo, Goal);
myTween:Play()
end)