H=false UIS.InputBegan:connect(function(h,F)if not F then if h.KeyCode==Enum.KeyCode.X then if H==false then script.Parent.HLight.ImageColor3=Color3.fromRGB(255,224,67)H=true else script.Parent.HLight.ImageColor3=Color3.fromRGB(255,255,255)H=false end end end end)function PBrake()if script.Parent.Parent.Values.PBrake.Value==true then script.Parent.PBrake.ImageColor3=Color3.fromRGB(255,38,38)else script.Parent.PBrake.ImageColor3=Color3.fromRGB(255,255,255)end end script.Parent.Parent.Values.PBrake.Changed:connect(PBrake)script.Parent.Parent.Values.Velocity.Changed:connect(function(h)script.Parent.Speedo.Needle.Rotation=90+225*math.min(1,(UNITS[currentUnits].scaling*script.Parent.Parent.Values.Velocity.Value.Magnitude)/UNITS[currentUnits].maxSpeed)script.Parent.Speed.Text=math.floor(UNITS[currentUnits].scaling*script.Parent.Parent.Values.Velocity.Value.Magnitude)..(" "..UNITS[currentUnits].units)end)script.Parent.Speed.MouseButton1Click:connect(function()script.Parent.Speed.Text=math.floor(UNITS[currentUnits].scaling*script.Parent.Parent.Values.Velocity.Value.Magnitude)..(" "..UNITS[currentUnits].units)end)wait(.1)PBrake()

H = false
UIS.InputBegan:connect(function(i,GP) if not GP then if i.KeyCode == Enum.KeyCode.X then
if H == false then
script.Parent.HLight.ImageColor3 = Color3.fromRGB(255, 224, 67)
H = true
else
script.Parent.HLight.ImageColor3 = Color3.fromRGB(255,255,255)
H = false
end
end end end)





function PBrake()
if script.Parent.Parent.Values.PBrake.Value == true then
	script.Parent.PBrake.ImageColor3 = Color3.fromRGB(255,38,38)
else
	script.Parent.PBrake.ImageColor3 = Color3.fromRGB(255,255,255)
end
end

script.Parent.Parent.Values.PBrake.Changed:connect(PBrake)


script.Parent.Parent.Values.Velocity.Changed:connect(function(property)
	script.Parent.Speedo.Needle.Rotation =90 + 225 * math.min(1,UNITS[currentUnits].scaling*script.Parent.Parent.Values.Velocity.Value.Magnitude/UNITS[currentUnits].maxSpeed)
	script.Parent.Speed.Text = math.floor(UNITS[currentUnits].scaling*script.Parent.Parent.Values.Velocity.Value.Magnitude) .. " "..UNITS[currentUnits].units
end)

script.Parent.Speed.MouseButton1Click:connect(function()
script.Parent.Speed.Text = math.floor(UNITS[currentUnits].scaling*script.Parent.Parent.Values.Velocity.Value.Magnitude) .. " "..UNITS[currentUnits].units
end)

wait(.1)
PBrake()
