---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)	
