Dynamic Blood Splatter

Hello, I am currently making a blood splatter and looking for more ways to improve it.
Here is my progress so far:

I need help on how to make my blood splatters more dynamic, I want them to follow the direction of where the sword is going. If the sword slashes left, the blood splatters go left. Currently, the code is similar to as provided:

local X = math.random(-15, 15)
local F = math.random(-5, 5)

local BodyVel = ...
BodyVel.Velocity = Part.CFrame.UpVector * 15.5 + Vector3.new(X, 0, F)

How do I make it so that the splatters follow the direction of the slash?

5 Likes

You might have to manually decide the blood’s velocity from the sword’s swinging direction of the animation. Unless you can find the sword’s velocity while it’s in contact with the humanoid, then apply that to the blood’s body velocity.

1 Like
  1. Try use Raycast to move blood, physics simulations its too expensive.
  2. to find slash direction simply get swords direction hit. (Sword.Blade.Velocity.Unit)
  3. To make it more cool you can add more blood that depends on damage you dealing.
2 Likes