What do you want to achieve? Keep it simple and clear!
im making a knockback script for my combat system, and im trying to make it to where the player your punching gets knocked back in the direction your facing
What is the issue? Include screenshots / videos if possible!
the script work perfectly fine, but when u hit two players at the same time since it tweens the cframe of the hrp it makes it to where there bodies will collide into one area which makes either one of both of them fling
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i tried tweening the enemies humanoidrootparts position but that made the knockback very buggy and i know i can use a body mover to fix this issue but i rather use tweening since it has a certain effect im trying to go for
local goal = {}
goal.CFrame = hrp.CFrame * CFrame.new(0,0,-10)
local info = TweenInfo.new(0.3,Enum.EasingStyle.Quart,Enum.EasingDirection.Out)
local tween = tweenservice:Create(enemyHrp,info,goal)
tween:Play()