local TweenedPart = script.Parent
local TweenService = game:GetService(“TweenService”)
local TweenProperties = TweenInfo.new(
7,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOutD,
9999,
true,
0
)
local NewPosition = TweenedPart.Position + Vector3.new(9.85, 1.2, -206.9)
local Tween = TweenService:Create(TweenedPart,TweenProperties, {Position = NewPosition})
Tween:Play()
It’s ending up in the right position you set it as, for some reason you added the Vector3 to your position though.
Code:
local TweenService = game:GetService("TweenService")
local TweenedPart = script.Parent
local TweenProperties = TweenInfo.new(
7,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut
)
local NewPosition = Vector3.new(9.85, 1.2, -206.9)
local Tween = TweenService:Create(TweenedPart, TweenProperties, {Position = NewPosition})
Tween:Play()
I’m also assuming you want this to run forever, so just make it -1 instead of 9999, or just don’t include it at all.