I am making a blood pooling script in a localscript and I need some help with positions. In my code, I have made the whole script work except the blood floats a little off the ground because it brings the blood to the left leg. I need some help with finding the position of the bottom of a part (Left Leg) so it stays on the ground.

4 comments

0

Just subtract half of the leg's height from the position of where the blood is to go (Leg height should be 2 studs, so subtract 1)

0

how would I edit one value of the position without editing all of them?

0

Position = Vector3.new(blood.Position.X,blood.Position.Y - 0.5(leg.Size.Y),blood.Position.Z)

0

Thanks!