Hello I am trying to tween a part that is welded to another part, however it does not seem to work and I am not getting any errors in the output, is it possible to tween a part that is welded to another part? I am using WeldConstraints.
Can you show all scripts that tweens the part you want to?
Here is the script for the tweens and some other stuff
Edit:
The tween that doesn’t play is the TweenLidLeft and TweenLidRight
Could you also provide with a screenshoot or video?
There’s nothing to screenshot simply a box, with a lid on top that is welded to something in the box, the box can be tweened with primarypart easily but a welded part does not seem to be able to tween, do you know a work around to this that doesn’t require too much work?
Try tweening the Weld C0 seperately maybe? Tweens do get cocky with physics constraints. You might even resort to just lerping all parts at the same time.
local hb = game:GetService("RunService").Heartbeat
local function lerpPart(part: BasePart, startPos: Vector3, goalPos: Vector3, lerpTime: number)
local counter = 0
local connection = hb:Connect(function(dt)
counter += dt
local alpha = counter / lerpTime
part.Position = startPos:Lerp(goalPos, counter / lerpTime)
if alpha == 1 then
connection:Disconnect()
connection = nil
end
end
end)
1 Like
I’m pretty sure you’d have to tween the C0 instead of the CFrame.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.