How would I take a tween's destination and automatically apply it

I am making a system that animates a door, but I have it on client side for smoothness. The way it works is by assembling the tween on the server and then sending that to the client. Right now, I am trying to make a system that updates it on the server after the tween finishes instantly, and I was wondering if there was a way I could automatically apply the tween’s destination:

local tweenDestination = {CFrame = cframe here}

or in other words, turn the destination into just a normal change with no tween.

Not quite sure if I’ve understood your post correctly.

You could have the destination CFrame stored in a variable (let’s call it goalCFrame) and use that when making the tween ({CFrame = goalCFrame}), and then just assigning it normally. As long as the assigned value is a Coordinate Frame, it should work fine.
door.CFrame = goalCFrame

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.