How do you "reset" a CFrame?

The problem with my battering ram script right now is that when it uses the CFrame, it does so with its original position instead of the intended most recent position, how do I fix this?

Line of code responsible:

local ChargeGoal = {

	CFrame = part.CFrame * CFrame.new(7,2,0)
}

apologies, i misread your question. it looks like ChargeGoal is being set beforehand and not when you want to have it done. perhaps you could instead set the cframe when it happens

1 Like

How would I go about doing that within a tween script?

i’m guessing that ChargeGoal is your properties table when you create your tween, so you can just do something like this:

game:GetService("TweenService"):Create(object, tweeninfo, {CFrame = object.CFrame * CFrame.new(7,2,0)})
2 Likes

Thanks, I’ll try plugging it into my code rn

Problem has been fixed, thanks for your help