Knockback teleports them to spawn

So Im currently making a combat system and on the last hit, I want it to knock them back so I used tweenService, however, the knockback just knocked them all the way to spawn no matter what. I tried looking for a solution but couldn’t find anything, heres my script:

				ts:Create(ray.Instance.Parent.HumanoidRootPart,TweenInfo.new(.15),{Position = -(char.HumanoidRootPart.Position - ray.Instance.Parent.HumanoidRootPart.Position).Unit * 1}):Play()

Any help is appreciated, thank you and have a good day.

ts:Create(ray.Instance.Parent.HumanoidRootPart,TweenInfo.new(.15),{Position = char.HumanoidRootPart.Position - (ray.Instance.Parent.HumanoidRootPart.Position.Unit * 100)}):Play()

You may find it better instead of tweening, to use :ApplyImpulse().

Apply impulse requires a vector3 value, I would suggest using the character that is hitting the humanoid’s HumanoidRootPart Lookvector, and then multiplying it.

HumanoidRootPart:ApplyImpulse(PlayerHitting.HumanoidRootPart.LookVector*20)

With your code, it’d be

ray.Instance.Parent.HumanoidRootPart:ApplyImpulse(playerhitting.HumanoidRootPart.CFrame.LookVector*20)

Obviously from server-side.

Thanks so much! It worked perfectly, I really appreciate your help.