So I’m trying to make a basic system where the car drains oil as it moves but I can’t figure it how to do this.
This uses the Roblox built in car system.
driveSeat.Changed:Connect(function(property)
if property == "ThrottleFloat" then
leftMotor.AngularVelocity = MAX_SPEED * driveSeat.ThrottleFloat
rightMotor.AngularVelocity = MAX_SPEED * driveSeat.ThrottleFloat
elseif property == "SteerFloat" then
leftServo.TargetAngle = MAX_STEER * driveSeat.SteerFloat
rightServo.TargetAngle = MAX_STEER * driveSeat.SteerFloat
end
end)
When I try put this under driveseat.Changed it only drains when the car changes direction.
And checking if the position or velocity changes doesn’t work
So now I have no idea how to do this
Could someone help?