Im making a combat system and i want to know what is the best way to stun players and npcs.
I want to make it smooth because when i change the speed to 0 and make them not able to jump they are just getting stuck immediately and it is not smooth at all any better ideas for how to do it?
using a lerp to create smooth stun-like effect can do that, here’s an example.
targetRootPart.CFrame = targetRootPart.CFrame:lerp(((targetRootPart.Position - attackerRootPart.Position) * Vector3.new(.5, 0, .5)).Unit * amount, .15)
1 Like