Hello Im making a A.I car system and im making it stop at stop lights and stop signs at the moment, everything works fine it is just, let me explane
The car will take exactly 1 second to go from the speed it is at now to 0 Now i want to know how do i work out how far away the car must be form the stop sign/stoplight before slowing down Can somebody please help
here is what i got
---Alot of other code
local Amount = script.Parent.Humanoid.WalkSpeed - 20
if Amount < 20 then
Amount = 20
elseif Amount >= 70 then
Amount = 70
end
if (c.Position - script.Parent.SpeedControlPart.Position).Magnitude <= Amount and c.Stop.Value == true then
---Alot of other code
