mouse.KeyDown:connect(function(q)q=string.lower(q)if q=="\117"then if windows==false then winfob.Visible=true windows=true else windows=false winfob.Visible=false end elseif q=="\091"then if carSeat.Parent.Body.MP.Sound.Volume>0 then handler:FireServer("\117\112\100\097\116\101\086\111\108\117\109\101",-0.2)end elseif q=="\093"then if carSeat.Parent.Body.MP.Sound.Volume<10 then handler:FireServer("\117\112\100\097\116\101\086\111\108\117\109\101",.2)end end end)winfob.mg.Play.MouseButton1Click:connect(function()handler:FireServer("\117\112\100\097\116\101\083\111\110\103",winfob.mg.Input.Text)end)mouse.KeyUp:connect(function(q)q=string.lower(q)if q:byte()==48 then st=false end end)HUB2.W.MouseButton1Click:connect(function()handler:FireServer("\119\119\115",carSeat.WS.Value,st)handler:FireServer("\119\119\114",carSeat.WS.Value,st)end)HUB2.UpW.MouseButton1Click:connect(function()handler:FireServer("\119\115\112\100",1)end)HUB2.DnW.MouseButton1Click:connect(function()handler:FireServer("\119\115\112\100",-1)end)HUB2.SS.MouseButton1Click:connect(function()carSeat.SST.Value=not carSeat.SST.Value end)for q,O in pairs(script.Parent:getChildren())do if O:IsA("\084\101\120\116\066\117\116\116\111\110")then O.MouseButton1Click:connect(function()if carSeat.Windows:FindFirstChild(O.Name)then local q=carSeat.Windows:FindFirstChild(O.Name)if q.Value==true then handler:FireServer("\117\112\100\097\116\101\087\105\110\100\111\119\115",q.Name,false)else handler:FireServer("\117\112\100\097\116\101\087\105\110\100\111\119\115",q.Name,true)end end end)end end
-------------------------

mouse.KeyDown:connect(function(key)
	key = string.lower(key)
	if key == "u" then --Window controls
		if windows == false then
			winfob.Visible = true
			windows = true
		else
			windows = false
			winfob.Visible = false
		end
	elseif key == "[" then -- volume down
		if carSeat.Parent.Body.MP.Sound.Volume > 0 then
			handler:FireServer("updateVolume", -0.2)
		end
	elseif key == "]" then -- volume up
		if carSeat.Parent.Body.MP.Sound.Volume < 10 then
			handler:FireServer("updateVolume", 0.2)
		end
	end
end)

winfob.mg.Play.MouseButton1Click:connect(function() --Play the next song
	handler:FireServer("updateSong", winfob.mg.Input.Text)
end)

mouse.KeyUp:connect(function(key)
	key = string.lower(key)
	if key:byte() == 48 then --Camera controls
		st = false
	end
end)

HUB2.W.MouseButton1Click:connect(function()
	handler:FireServer("wws", carSeat.WS.Value, st)
	handler:FireServer("wwr", carSeat.WS.Value, st)
end)

HUB2.UpW.MouseButton1Click:connect(function()
	handler:FireServer("wspd", 1)
end)

HUB2.DnW.MouseButton1Click:connect(function()
	handler:FireServer("wspd", -1)
end)

HUB2.SS.MouseButton1Click:connect(function()
	carSeat.SST.Value = not carSeat.SST.Value
end)

for i, v in pairs(script.Parent:getChildren()) do
	if v:IsA("TextButton") then
		v.MouseButton1Click:connect(function()
			if carSeat.Windows:FindFirstChild(v.Name) then
				local v = carSeat.Windows:FindFirstChild(v.Name)
				if v.Value == true then
					handler:FireServer("updateWindows", v.Name, false)
				else
					handler:FireServer("updateWindows", v.Name, true)
				end
			end
		end)
	end
end
