Hey all. So lately iv’e been trying to figure out how i would tween an unanchored part from one place to another with out using animations. Iv’e tried this before, but when i moved the part / model. the part just teleports and plays the tween at its original position. How would i avoid this issue? I need this done for many things for my game, like moving parts on a gun, or moving parts on a turret. Some help would be much appreciated!
wouldn’t that be even more glitchy if i were to use this on say a gun? or other posible past moving models?
No, it shouldn’t be glitchy. If you were going to make a bullet fly from a gun for example, you can just use BodyVelocity for that.
what if i wanted to tween a bolt moving back from a rifle every time it fired?
Like a bolt thats welded to the rifle?
can’t you just anchor it when it’s tweening and then unanchor it when it stops tweening?
yeah. And a tween plays when you fire the weapon that allows the bolt to move back and forth
no, i cant because they model it self will stop moving when ever the tween plays
Just tween the weld then, thats probably the best option.
I would suggest using BodyMovers for this type of stuff. If you’re going for bullet movement, I would recommend BodyVelocities.
What about other moving parts? Like a slide on a pistol?
If you want to have a gun cocking animation, I would suggest using a Motor6D and animating the pistol.
In this case, animating is the only practical solution.