How would I tween a model (PrimaryPart - tweening)?
Alright, I know the method :SetPrimaryPartCFrame(), and I know how to tween single parts.
What I do not know how to do, is how I would tween an entire model, similarly to doing :SetPrimaryPartCFrame to a model with a placement system. (What I mean is that I want to tween the entire model)
I have no idea what to do in order to tween the entire model relative to it's PrimaryPart
I have this coding for my single-part tweening:
ntarget is specified as the part I want to tween, earlier in the script.
local TimeForObjectToTweenBack = 0.2
function TweenPart()
if ntarget ~= nil then
local goal = {}
goal.Position = PrevPosition --PrevPosition is also specified earlier in the script, don't worry. :|
local tweenInfo = TweenInfo.new(TimeForObjectToTweenBack)
local tween = TweenService:Create(ntarget, tweenInfo, goal)
tween:Play()
wait(TimeForObjectToTweenBack)
ntarget = nil
end
end
Any help is greatly appreciated!

1 comment
There is a function on CFrames called Lerp, never used it so I can't explain any more.