I am having trouble with making an idle kind of look on this part:
each time it tweens it seems to go down 5 studs before starting each tween and i can litterally do nothing to fix it, here is the script.
local part = script.Parent
local TweenService = game:GetService("TweenService")
local resetPosition = Vector3.new(8.248, 5.752, -167.323)
local tweenInfo = TweenInfo.new(
1,
Enum.EasingStyle.Cubic,
Enum.EasingDirection.InOut,
-1,
true
)
local goalUp = {Position = resetPosition + Vector3.new(0, 5, 0)}
local function startTween()
local tween = TweenService:Create(part, tweenInfo, goalUp)
tween:Play()
part.Position = resetPosition
end
startTween()