Log in to vote

Moving a model using TweenService?

Asked by 3 years ago

I sorta got stuck in a rut where I can't change my script to not use tweenservice, because other wise I have to redo a large bulk of my script.

So is there a way to tween a model's cframe through the use of tweenservice?

1 answer

Log in to vote
Answered by 3 years ago


local tweenService = game:GetService("TweenService") --Get the tween service.

local part ="Part") --Make a new part.
part.Position = part.Position --ignore 
part.Anchored = true --Part is anchored.
part.Parent = game.Workspace --The parent of the part is workspace

local goal = {} --Table.
goal.Position =,y,z) --Where you want the part to go (world coordinates) (change x y z to coordinates)

local tweenInfo = --Speed (The lower the number the fastest the tween)

local tween = tweenService:Create(part, tweenInfo, goal) --Give the tween info.

tween:Play() --Execute the tween.

This is how you move a part



Answer this question