I have a car system and whenever a player presses H it activates the handbrake but when its activated the car is sometimes jumping a bit. It might also be because of how the car is set up.
InputBeganConnection = UIS.InputBegan:Connect(function(input, gPE)
if gPE then return end
if input.KeyCode == Enum.KeyCode.H then
if not HandbrakeActivated then
cylindricalBL.AngularLimitsEnabled = true
cylindricalBR.AngularLimitsEnabled = true
cylindricalBL.LowerAngle = 0
cylindricalBL.UpperAngle = 0
cylindricalBR.LowerAngle = 0
cylindricalBR.UpperAngle = 0
HandbrakeActivated = true
else
cylindricalBL.AngularLimitsEnabled = false
cylindricalBR.AngularLimitsEnabled = false
cylindricalBL.LowerAngle = -45
cylindricalBL.UpperAngle = 45
cylindricalBR.LowerAngle = -45
cylindricalBR.UpperAngle = 45
HandbrakeActivated = false
end
How would I make it so that when the handbrake is activated the car slows down more gradually and doesnt jump?
Thanks in advance ![]()