Easy method for TweenService on Models & Meshes?

So I have been learning TweenService on the developer hub and stumbled upon this code, I understand all the functions but im curious is their a way to tween models and meshes? I cant seem to find a method for that.

    local TweenService = game:GetService("TweenService")

    local part = game.Workspace.Location1

    part.Position = Vector3.new(558, 0.5, -75.7)

    part.Anchored = true

    part.Parent = game.Workspace

    local tweenInfo = TweenInfo.new(

    4, -- Time

    Enum.EasingStyle.Quart, -- EasingStyle

    Enum.EasingDirection.In, -- EasingDirection

    -1, -- RepeatCount (when less than zero the tween will loop indefinitely)

    true, -- Reverses (tween will reverse once reaching it's goal)

    0 -- DelayTime

    )

    local tween = TweenService:Create(part, tweenInfo, {Position = Vector3.new(575.5, 0.5, 50.3)})

    tween:Play()

    wait(10)

    -- cancel the animation after 10 seconds

If you do have the solution please try to keep it simple, I am a beginner.

1 Like

I don’t believe you can Tween the Model Instance itself but you could have a base part connected with a Motor6D/Weld and try it like that. Or just for loop it and tween all the parts which shouldn’t break.

  • You can tween meshes like you would tween any other instance

Tweeing models is actually quite simple :

  • Set a part in the model as the Primarypart
  • Anchor the PrimaryPart
  • Using the Contraint Editor Plugin , weld all the other parts to the PrimaryPart
  • Perform the tweening on the primary part and the entire model should move
3 Likes

See this post for more information:

3 Likes