So basically trying to make a knockback class, for some reason it kills my character when I click to swing my weapon, however the funny thing is is that I did it with a tool and it works completely fine? Am I missing something?
Might be something to do with the velocity. Is there a reason as to why your tweening the velocity?
Honestly thanks for pointing that out because I meant to remove that, it was a experiment
my guess is the CFrame.lookat function gets the same 2 vectors which results in nan orientation and completly messes up everything
just print them out to make sure they are not the same
yeah; you see that flicker before you die? this is the cause.
Just make sure they 2 vector’s aren’t the same and only then change the character’s cframe
ohhhh i see… so what i didnt do was add a check to see if the hitbox is hitting their own player, so essentially it’s hitting their own torso whileas the attackOrigin is also their torso, so yeah it was the two same vectors i strongly appreciate it