I've been trying to tween a part that follows the player and also goes p and down at the same part I got the up and down part but when I try to make it follow the player or anything it doesn't
--local AllDragons = {script.Parent.DragonC,script.Parent.DragonV,script.Parent.DragonX,script.Parent.DragonY,script.Parent.DragonZ}
local Upflat = script.Parent
local ramnd = math.random(-1,3)
local dumms = game.Workspace.Dums
local TweenService = game:GetService("TweenService")
local Ftwwen = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
-1,
true,
0
)
local partProp = {
CFrame = CFrame.new(Upflat.Position + Vector3.new(0,ramnd,0),
Upflat.Position == dumms.HumanoidRootPart.Position); -------- not the way I used but I lost the one since I raged and pressed don't save
Transparency = 0.2
}
local tween = TweenService:Create(Upflat,Ftwwen,partProp)
tween:Play()

1 comment
Dont know if this is the problem but in the partProp table, replace Upflat.Position with just Position because if it is Upflat.Position then when it goes to tween it looks for Upflat.Upflat.Position