Why is the Model CFrame being set to a position out of the world? It also prints that the Model is in the correct CFrame Position, aswell as the ECF variable.
Model.PrimaryPart.CFrame (In-Game) = 0, 340282346638528859811704183484516925440, 0
print(ECF) = -43.3687172, 2.51861906, 80.102005
print(Unit.PrimaryPart.CFrame) = -43.3687172, 2.51861906, 80.102005
Code:
for _, v in Animator:GetPlayingAnimationTracks() do
if v.Name == "Whirlpool" then
v:GetMarkerReachedSignal("Start"):Connect(function()
local Position = Enemy.PrimaryPart.Position
local ECF = CFrame.new(Position)
print(ECF)
Unit.PrimaryPart:PivotTo(ECF)
print(Unit.PrimaryPart.CFrame)
end)