(my grammar is kinda broken since English is not my native language)
https://gyazo.com/a4015bf6cfeadd411124ea9c85bd72e2
as u can see in the vid, somehow tweenservice decided to flip my model and I don’t know how to fix that
thx
ps. I use orientation and position of the reference model to tween
Can you post code? This shouldn’t be able to happen if your tween is from the 45 degree angled sword to the flat on the ground sword. Tweenservice can’t do full circles like that in a single tween.
Try using CFrame for the goal instead of the Position and Orientation properties.
local duration1 = 0.5
local goal = {}
goal.CFrame = swordhalf.CFrame
local tweenInfo = TweenInfo.new(duration1, Enum.EasingStyle.Linear)
local tween = TweenService:Create(sword, tweenInfo, goal):Play()
wait(duration1)
local goal = {}
goal.CFrame = sworddone.CFrame
local tweenInfo = TweenInfo.new(duration1, Enum.EasingStyle.Linear)
local tween = TweenService:Create(sword, tweenInfo, goal):Play()
https://gyazo.com/857d24ba3094c3b698d1495a1a51a2c4
nothing happended becuase i weld the model with humanoidrootpart?
Was it welded when you were using Position and Orientation for the goals? I didn’t change anything logically. The CFrame is a single value containing both Position and Orientation, those properties are just helper shortcuts to read those separately from the CFrame. I was speculating that maybe the circular rotation was a result of how TweenService is applying Position and Orientation separately.
I delete all weld and anchored the part before tween and it works fine thx
1 Like