mouse.KeyDown:connect(function(d)d=string.lower(d)if d=="\107"then if cam=="\099\097\114"then Camera.CameraSubject=player.Character.Humanoid Camera.CameraType="\067\117\115\116\111\109"cam="\102\114\101\101\112\108\114"Camera.FieldOfView=70 elseif cam=="\102\114\101\101\112\108\114"then Camera.CameraSubject=player.Character.Humanoid Camera.CameraType="\065\116\116\097\099\104"cam="\108\111\099\107\112\108\114"Camera.FieldOfView=45 elseif cam=="\108\111\099\107\112\108\114"then Camera.CameraSubject=carSeat Camera.CameraType="\067\117\115\116\111\109"cam="\099\097\114"Camera.FieldOfView=70 end elseif d=="\091"then if carSeat.Parent.Body.MP.Sound.Volume>=0 then handler:FireServer("\118\111\108\117\109\101\100\111\119\110",true)carSeat.Parent.Body.Dash.Screen.G.Main.Icon.Vol.Text="\086\111\108\058 "..carSeat.Parent.MPL.Sound.Volume end elseif d=="\093"then if carSeat.Parent.Body.MP.Sound.Volume<=10 then handler:FireServer("\118\111\108\117\109\101\117\112",true)carSeat.Parent.Body.Dash.Screen.G.Main.Icon.Vol.Text="\086\111\108\058 "..carSeat.Parent.MPL.Sound.Volume end elseif d=="\117"then handler:FireServer("\082\097\100\105\111")elseif d=="\103"then handler:FireServer("\068\101\108\101\116\101")elseif d=="\110"then handler:FireServer("\084\097\098\115")end end)HUB.Sport.MouseButton1Click:connect(function()handler:FireServer("\083\112\111\114\116")end)HUB.Comfort.MouseButton1Click:connect(function()handler:FireServer("\067\111\109\102\111\114\116")end)HUB.Dynamic.MouseButton1Click:connect(function()handler:FireServer("\068\121\110\097\109\105\099")end)carSeat.Indicator.Changed:connect(function()if carSeat.Indicator.Value==true then script.Parent.Indicator:Play()else script.Parent.Indicator2:Play()end end)game.Lighting.Changed:connect(function(d)if d=="\084\105\109\101\079\102\068\097\121"then handler:FireServer("\084\105\109\101\085\112\100\097\116\101")end end)if game.Workspace.FilteringEnabled==true then handler:FireServer("\102\101\079\078")elseif game.Workspace.FilteringEnabled==false then handler:FireServer("\102\101\079\070\070")end carSeat.LI.Changed:connect(function()if carSeat.LI.Value==true then carSeat.Parent.Body.Dash.Spd.G.Indicator.Visible=true script.Parent.HUB.Left.Visible=true else carSeat.Parent.Body.Dash.Spd.G.Indicator.Visible=false script.Parent.HUB.Left.Visible=false end end)carSeat.RI.Changed:connect(function()if carSeat.RI.Value==true then carSeat.Parent.Body.Dash.Tac.G.Indicator.Visible=true script.Parent.HUB.Right.Visible=true else carSeat.Parent.Body.Dash.Tac.G.Indicator.Visible=false script.Parent.HUB.Right.Visible=false end end)while wait()do carSeat.Parent.Body.Dash.DashSc.G.Spd.Text=math.floor(carSeat.Velocity.magnitude*.56818181818182).." \109\112\104"carSeat.Parent.Body.Dash.Screen.G.Screen.StatusBar.Time.Text=game.Lighting.TimeOfDay carSeat.Parent.Body.Dash.DashSc2.G.Time.Text=game.Lighting.TimeOfDay end
-------------------------

mouse.KeyDown:connect(function(key)
	key = string.lower(key)
	if key == "k" then --Camera controls
		if cam == "car" then
			Camera.CameraSubject = player.Character.Humanoid
			Camera.CameraType = "Custom"
			cam = "freeplr"
			Camera.FieldOfView = 70
		elseif cam == "freeplr" then
			Camera.CameraSubject = player.Character.Humanoid
			Camera.CameraType = "Attach"
			cam = "lockplr"
			Camera.FieldOfView = 45
		elseif cam == "lockplr" then
			Camera.CameraSubject = carSeat
			Camera.CameraType = "Custom"
			cam = "car"
			Camera.FieldOfView = 70
		end
	elseif key == "[" then -- volume down
		if carSeat.Parent.Body.MP.Sound.Volume >= 0 then
			handler:FireServer("volumedown", true)
			carSeat.Parent.Body.Dash.Screen.G.Main.Icon.Vol.Text = ("Vol: " .. carSeat.Parent.MPL.Sound.Volume)
		end
	elseif key == "]" then -- volume up
		if carSeat.Parent.Body.MP.Sound.Volume <= 10 then
			handler:FireServer("volumeup", true)
			carSeat.Parent.Body.Dash.Screen.G.Main.Icon.Vol.Text = ("Vol: " .. carSeat.Parent.MPL.Sound.Volume)
		end
	elseif key == "u" then
		handler:FireServer("Radio")
	elseif key == "g" then
		handler:FireServer("Delete")
	elseif key == "n" then
		handler:FireServer("Tabs")
	end
end)

HUB.Sport.MouseButton1Click:connect(function() --Hide tracker names
	handler:FireServer("Sport")
end)

HUB.Comfort.MouseButton1Click:connect(function() --Hide tracker names
	handler:FireServer("Comfort")
end)

HUB.Dynamic.MouseButton1Click:connect(function() --Hide tracker names
	handler:FireServer("Dynamic")
end)

carSeat.Indicator.Changed:connect(function()
	if carSeat.Indicator.Value == true then
		script.Parent.Indicator:Play()
	else
		script.Parent.Indicator2:Play()
	end
end)

game.Lighting.Changed:connect(function(prop)
	if prop == "TimeOfDay" then
		handler:FireServer("TimeUpdate")
	end
end)

if game.Workspace.FilteringEnabled == true then
	handler:FireServer("feON")
elseif game.Workspace.FilteringEnabled == false then
	handler:FireServer("feOFF")
end

carSeat.LI.Changed:connect(function()
	if carSeat.LI.Value == true then
		carSeat.Parent.Body.Dash.Spd.G.Indicator.Visible = true
		script.Parent.HUB.Left.Visible = true
	else
		carSeat.Parent.Body.Dash.Spd.G.Indicator.Visible = false
		script.Parent.HUB.Left.Visible = false
	end
end)

carSeat.RI.Changed:connect(function()
	if carSeat.RI.Value == true then
		carSeat.Parent.Body.Dash.Tac.G.Indicator.Visible = true
		script.Parent.HUB.Right.Visible = true
	else
		carSeat.Parent.Body.Dash.Tac.G.Indicator.Visible = false
		script.Parent.HUB.Right.Visible = false
	end
end)

while wait() do
	carSeat.Parent.Body.Dash.DashSc.G.Spd.Text = (
		math.floor(carSeat.Velocity.magnitude * ((10 / 12) * (60 / 88))) .. " mph"
	)
	carSeat.Parent.Body.Dash.Screen.G.Screen.StatusBar.Time.Text = game.Lighting.TimeOfDay
	carSeat.Parent.Body.Dash.DashSc2.G.Time.Text = game.Lighting.TimeOfDay
end
