Ok, so I know the title is a bit weird, but I can explain it. Basically, I'm tweening a part, and I want it to stay locked to the part it's tweening on top of, in this case, it's Baseplate. Right now, when I tween the part, it just goes through the ground, and I'm not sure how to fix this.

Current Tween

Script if it helps:

local TweenService = game:GetService("TweenService")
local TwnInfo = TweenInfo.new(2.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out)
local Tween = TweenService:Create(script.Parent.Parent, TwnInfo, {Size = Vector3.new(6, 6, 6)})

script.Parent.MouseClick:Connect(function()
	Tween:Play()
end)

(p.s. if you don't see it, the part is going into the ground when tweening the Y axis.)

3 comments

0

Is the CanCollide on?

0

^doesnt matter, you cant with tweens, at most you can prevent it by going through the floor by offsetting the position too, so you are changing the size and the position at the same rate so it only changes in the directoin that isnt the floor

0

Oh I can just do that, thanks.