so I’m trying to make a ghost that moves in a straight line while floating up and down to make it seem natural, I also want to make it so it fade in and out every .5 seconds but I don’t know how do I add the up and down tweening when it’s already tweening by moving on a straight line and the transparency is fading slowly instead of a .5 tick when I put it at the same table as the end position and how do I make it so it will look back (180 degrees) whenever it loop back
local ghost = game.Workspace.Course2.Obstacle4.Folder.Ghost.PrimaryPart
local tweenService = game:GetService(“TweenService”)
local tweenInfo = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, math.huge, true, 2)
local goal = {
Position = Vector3.new(-195.131, 3.545, -155.916)
}
local tween = tweenService:Create(ghost, tweenInfo, goal)
tween:Play()