How do i make debris with dashing

i couldn’t find any tutorials on it so i’ll ask here


i get how the sizing works but how do they position it when you dash?

my guess is they just create part for both feet then position it lower than where the foot is

just wanted to see how else i could do it

my guess is; do 1 raycast to get the part, apply the position with the same Y axis, then for the X and Z grab the player’s root position and add some random offset, same thing for rotation - just mul by

CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360)))

(could also make a function to get the random radian)

also; apply the material and color to the debris from the part you hit with the raycast

for the raycast what would the origin and direction be? the hrp?

Yeah; and for the direction just do Vector3.new(0, -10, 0)

would this work if the player dashes left or right though?

ohh nvm this is so its in the ground lol