So im making this building system and I want to make this effect where the model just moves to the next position the player taps in with a cool tween effect. I have a primary part for the model which is a part wrapped around all of the objects. Does anyone know a solution?
Set a primary part, weld all other parts in the model to it, then tween the CFrame of the primary part. Tweening its position will only move the primary part and not the whole model.
or instead of TweenService u can use Model:PivotTo() with :lerp( for smoth movement )
Here is a starting point
How do I use this lerp function?
Personally, I typically opt for tweenservice, but yeah, both work.
Is there a way I can use this without welding?
Probably not easily. Without them welded, even with tweening the primary part’s cframe, only the primary part is going to move.
Oh because I already created a lot of models. Is there a way to not tween them but to add a little effect when the model moves to make it look smooth?
CF = -- model cf
CF2 = --cframe that model will be moved to
Model:PivotTo(CF:Lerp(CF2, 0.4))
Okay this code looks like it will probably work
Thank you I think this was indeed the solution
srry if there is one error, im writing on mobile
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.