#cframe tween doesn't change welded part's position, but welded part moves

1 messages · Page 1 of 1 (latest)

tall gull
#

tried to explain it the best i could in the title but yeah, im tweening an object's cframe and a object welded to it moves with it but it's actual position property does not change. im trying to teleport a part to the same cframe as it after some time but it teleports to the old position

also in the module script the cloned item also doesn't weld to the parent if i can get help with that

sleek lintel
#

You're cloning knifeTool and saving it as clonedknife, but then using clonedKnife (with a capital "K"). That can cause an error because Lua is case-sensitive.

#

The "item" object is welded, but the "parent" may not be a BasePart
In the module, you are trying to weld an item with a parent, but if the parent is not a physical part (BasePart), the WeldConstraint will not work.

#

The tween moves the part visually, but doesn't update the actual .CFrame.
As the user in the image said, if a part is welded and moved by TweenService, its .Position or .CFrame doesn't actually change; it just follows the parent. So if you then run part.CFrame, it returns the original, not the "visible" position.

#

Solution I recommend: Change the misspelling

clonedKnife.Parent = backpack```


Make sure parent is a BasePart (script 2)
Before creating the WeldConstraint, verify that parent:IsA("BasePart")


```if parent:IsA("BasePart") then
    local weld = Instance.new("WeldConstraint")
    weld.Parent = item
    weld.Part0 = item
    weld.Part1 = parent
end

To make the object's .CFrame exact, clone it and drop it without visual dependency.
Instead of using WeldConstraint, you can move it into position with .CFrame = cframe and temporarily anchor it, or use PivotTo if it's a Model

item.CFrame = cframe
-- If you want to use Weld later, you can unpin it```
#

@tall gull

tall gull
#

is this ai because i got this exact same answer from chatgpt