ButtonsPanel.Lights.MouseButton1Click:Connect(function()if Char.Humanoid.SeatPart~=nil and Char.Humanoid.SeatPart.Parent:FindFirstChild("\083\116\097\116\115")then Char.Humanoid.SeatPart.Parent.VehicleSeat.ChassisMain.Lights:FireServer()end end)ButtonsPanel.Flip.MouseButton1Click:Connect(function()if Char.Humanoid.SeatPart~=nil and(Char.Humanoid.SeatPart.Parent:FindFirstChild("\083\116\097\116\115")and FlipCD==false)then FlipCD=true local a=Char.Humanoid.SeatPart.Parent.Engine.Stability a.D=100 a.P=2000 a.MaxTorque=Vector3.new(1800,0,1800)wait(3)a.D=11 a.P=11 a.MaxTorque=Vector3.new(6,6,6)wait(5)FlipCD=false end end)
---Setting events to all buttons

ButtonsPanel.Lights.MouseButton1Click:Connect(function()
	---Checking if the player is in a vehicle
	if Char.Humanoid.SeatPart ~= nil and Char.Humanoid.SeatPart.Parent:FindFirstChild("Stats") then
		Char.Humanoid.SeatPart.Parent.VehicleSeat.ChassisMain["Lights"]:FireServer()
	end
end)

ButtonsPanel.Flip.MouseButton1Click:Connect(function()
	---Checking if the player is in a vehicle
	if Char.Humanoid.SeatPart ~= nil and Char.Humanoid.SeatPart.Parent:FindFirstChild("Stats") and FlipCD == false then
		FlipCD = true
		local Gyro = Char.Humanoid.SeatPart.Parent.Engine.Stability

		Gyro.D = 100
		Gyro.P = 2000
		Gyro.MaxTorque = Vector3.new(1800, 0, 1800)
		wait(3)
		Gyro.D = 11
		Gyro.P = 11
		Gyro.MaxTorque = Vector3.new(6, 6, 6)

		wait(5)
		FlipCD = false
	end
end)
