I followed the same article and works perfectly. Basically, you set a Primary Part for your model, weld all the other parts to that and then run the tween against the Primary Part.
Full Answer
I know you can tween parts but tweening a model is a little difficult. My aim is to use TweenService to tween a model. In the past, I’ve tried: Searching the forums and using the methods listed, which do not answer my question or fit what I want Welding unanchored parts… I used this solution to tween my projectiles.
To demonstrate SetPrimaryPartCFrame, a simple loop is then run which switches the model between two CFrames every second. In this sample every Player character Model added will be moved to 0, 500, 0 three seconds after spawning.
The DataType/CFrame to be set. In this code sample a Model is created with a simple arrangement of Parts. The PrimaryPart of this Model is then set, meaning Model:SetPrimaryPartCFrame can then be used. To demonstrate SetPrimaryPartCFrame, a simple loop is then run which switches the model between two CFrames every second.
You won't be able to tween the object's cframe using the tween service if you also want to manipulate the cframe in other ways at the same time. If you have code that is updating the part's cframe to follow the mouse, every time it does an update step, you could get the desired orientation from a separate system.
Tweens are used to interpolate the properties of instances. These can be used to create animations for various Roblox objects. Almost any numeric property can be tweened using TweenService .
0:006:28How to Move a Part with TweenService in Roblox - YouTubeYouTubeStart of suggested clipEnd of suggested clipAnd make that position a little bit up so we could float we're going to float the part we're goingMoreAnd make that position a little bit up so we could float we're going to float the part we're going to float a ball from one part to another and i'm going to call this part one.
Cancel ( ) The Cancel function halts playback of its Tween and resets the tween variables. If TweenBase:Play is called again the Tween 's properties will resume interpolating towards their destination but, as the tween variables have been reset, take the full length of the animation to do so.
EDIT: I did experiment with it in Roblox. You can tween a number linearly by using a + (b - a)*c where a and b are your start and finish and c is your alpha (some decimal at or between 0 and 1). You can also use CFrame:lerp(cf,c) and Vector3:Lerp(v3,c) to lerp their respective userdatas.
4:1818:03Roblox TweenService Tutorial - How To Tween Parts In Your GameYouTubeStart of suggested clipEnd of suggested clipAnd now what we want to do is we want to define tweening information we want to tell the scripts allMoreAnd now what we want to do is we want to define tweening information we want to tell the scripts all what we want our animation to to because there's lots of different types of animation.
motor6D is a weld 2.0, it allows two parts to be together and being able to move.
0:003:09How to Make a Spinning Part | Roblox Studio Tutorial - YouTubeYouTubeStart of suggested clipEnd of suggested clipYou just customize that however you like change the color set transform save material wherever youMoreYou just customize that however you like change the color set transform save material wherever you want. And once you've done that click on the plus sign and add a script.
1:445:28How to animate parts with Moon Animator | Roblox - YouTubeYouTubeStart of suggested clipEnd of suggested clipJust click this little plus right here select your model. And select rig and c frame. And then clickMoreJust click this little plus right here select your model. And select rig and c frame. And then click ok. And then you're ready to animate. So i'm going to select part one create a keyframe.
To move the breakline between two contiguous tween spans, drag the breakline. Each tween is recalculated. To separate the adjacent start and end frames of two contiguous tween spans, Alt-drag (Windows) or Command-drag (Macintosh) the start frame of the second span.
To reset a tween use Tween:Cancel() then Tween:Start() .
0:002:36How CFrame:Lerp() works | Roblox Studio - YouTubeYouTubeStart of suggested clipEnd of suggested clipBetween this c frame and the goal by the fraction alpha this alpha is the second parameter of theMoreBetween this c frame and the goal by the fraction alpha this alpha is the second parameter of the lerp. Function if you are using it with a part you need to type part.