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.