local Tweenservice = game:GetService("TweenService") -- this is the tween service u primaly need
local TweenAnimation = TweenInfo.new(5,Enum.EasingStyle.Linear) -- 5 presents how many seconds the tween plays, Easing style is animation style, you choose Linear because parts move straight and precise so useLinear
local tweenplayer = TweenService:Create(part,TweenAnimation,{ Position = Vector3.new(val,val,val) }) -- part is the part u wanna reference, TweenAnimation is the animation thats gonna play, Position is the part's position after the tween is played
tweenplayer:Play()
tweenplayer.Completed:Wait() -- this waits until the tween is finished but you could change it to wait(number) too
-- this section u can do another set of tweening like upward or downward but I'll finish from here :)
Uhh, theres an example script of tweening hopefully you can understand
Theres the tween animation example, hopefully you can understand what i meant
@Angrybirdcharacter but it just teleports to the position i want it to move straightly to the position