Calculating the time needed for a bullet tracer via the distance of the raycast

I’m trying to calculate the amount of time needed for a bullet tracer to be the same speed at any distance.

Here’s a video example of the issue. alternative


When I shoot at my :foot:, the tracer is very very slow. When I shoot farther away, it’s really fast. How do I make the tracer move at the same speed regardless of the distance from where I’m shooting?

The variables I have are the start position, end position, and total distance.
I am achieving the current effect via tweening the position of attachment0 to attachment1(via the basepart theyre in) and a beam. I do not want to use a trail.

This was difficult to explain, but pretty plz help me :3

thanks
:smile_cat:

im stupid the answer was distance / velocity

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.