Alright, so I develop for a group and the owner keeps pushing me to make a speed radar for his police vehicles, my problem is I have no idea how to go about it...
I've had a few ideas like making the vehicles store a speed value in their car as it changes, but I can't change the coding of any of the civillian vehicles, so that won't work.
I have wondered if there is a way to pull a player's speed, but I have no clue about that.
Any and all suggestions or ideas about what to do for this will be a huge help to me... Anything will help related to this issue.
All objects affected by physics will have their Velocity
property change depending on the moving direction and speed of the object. The length of the vector is the object's speed: object.Velocity.Magnitude
(studs/s).
The speed detector set up
Part A:
Part B:
A loop that increments each second
Distance is pre-calculated when you place the distance between part A and B which is divided by the time and displayed on the detector as a surface gui.