Assistant | Documentation (roblox.com)
At the last moment, I remembered about the roblox assistant, asked him a question, I advise everyone to use this advice!
local TweenService = game:GetService("TweenService")
-- Create a part to animate
local part = script.Parent
-- Create a tween
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear)
local tween = TweenService:Create(part, tweenInfo, {Size = Vector3.new(5, 5, 5)})
-- Cancel the tween
tween:Cancel()