TweenService not working when i move a Model

  1. What do you want to achieve? Keep it simple and clear!

I have a car in a game which is a model, i dont want do drive it, i just want to move it with the TweenService by moving it to a “GoalPart”.

  1. What is the issue? Include screenshots / videos if possible!

I created a script with the help of the Beta Feature that can create scripts but whenever i start the game and the script executes, nothing happens, and not even a Error Message! So what did i do wrong?

(Maybe Important: Script is in ServerScriptService (Normal Script) , both Models are in Workspace)

This is my script:

local mod1 = game.Workspace.Car.PrimaryPart
local GoalPart1 = game.Workspace.GoalPart1

local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(
    30, -- Time
    Enum.EasingStyle.Linear,
    Enum.EasingDirection.InOut,
    0, 
    false, 
    0.2
)

local Tween = TweenService:Create(mod1, Info, {CFrame = GoalPart1.CFrame})
Tween:Play()

When you are trying to tween a model to move then you’d be better off Motor6D’ing the model and tweening the anchor part, I have a useful video that will help you in this matter!

Model tween tutorial

1 Like

Okay thanks! I’ll try it and tell u if it worked :slight_smile:

Video Link (Had to upload it to YT because of the File Size)!

  • All Parts are unanchored except for the RootPart
  • I Inserted the Motor6D thing and connected it to both Root and Base Part (Forgot to show it in the Video)
  • I welded all Parts except for the Root Part