Tween is being werid?

local TweenService = game:GetService("TweenService")
local Part = game.Workspace.Part

local tweenInfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)

local Goal = {}
Goal.CFrame = Part.CFrame * CFrame.new(-0,-Part.CFrame.Y,0)
local Tween = TweenService:Create(Part,tweenInfo,Goal)


Tween:Play()
    
my code: here is a video of what happens idk why this is happening.

Are you just trying to shrink the part to a height of 0?

no hes moving it underground but something makes it go back (prob)

1 Like

Is the part anchored?

Try this (and anchor the part):

This will move your part downwards into the floor (by its Y-axis height)

local TweenService = game:GetService("TweenService")
local Part = workspace.Part

local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)

local Tween = TweenService:Create(Part, tweenInfo, {Position = Part.CFrame.p - Vector3.new(0, Part.Size.Y, 0)})

Tween:Play()

try this

local Part = game.Workspace.Part

local tweenInfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)

local Goal = {}
Part.Anchored = true
Goal.CFrame = Part.CFrame - Vector3.new(0,-10,0) --change -10 to anything
local Tween = TweenService:Create(Part,tweenInfo,Goal)


Tween:Play()
   Tween.Completed:Wait()
print("tween complete")
my code: here is a video of what happens idk why this is happening.

solution was anchoring the part idk why tho