I’m making a kill effect for my game and the HumanoidRootPart of the Victim isn’t smoothly tweening to the goal CFrame. It works with no errors, however, once the tween is done the Victim’s HumanoidRootPart is teleported to it. Please help
char.HumanoidRootPart.Anchored = true
script["Portal"].CFrame = CFrame.new(script.Parent:WaitForChild("HumanoidRootPart").Position.X, script.Parent:WaitForChild("HumanoidRootPart").Position.Y + 5, script.Parent:WaitForChild("HumanoidRootPart").Position.Z)
local goal = {}
goal.CFrame = script["Portal"].CFrame
local x = tween:Create(char.HumanoidRootPart, TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), goal)
x:Play()