The script is supposed to print something if a car is going at 40 speed. Heres the script:
1 | while wait() do |
2 | local speed = script.Parent.Velocity.Magnitude |
3 | if speed = = 40 then |
4 | print ( "you are going too fast" ) |
5 | end |
6 | wait() |
7 | end |
Instead of speed == 40
do speed >= 40
because the way you increase speed may make the speed go over 40, while skipping it. (like if you increase the speed by +3 or any number thats not a divisor of 40, the speed will never equal 40).