if script.Parent.Parent.Parent.IsOn.Value then script.Parent.Parent:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)end script.Parent.Parent.Parent.IsOn.Changed:connect(function()if script.Parent.Parent.Parent.IsOn.Value then script.Parent.Parent:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,1,true)end end)function turn()if hinge.DesiredAngle==0 then car.Misc.Wiper2.WiperEvent:FireServer(1)else car.Misc.Wiper2.WiperEvent:FireServer(0)end end script.Parent.MouseButton1Click:connect(function()turn()end)local R=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")R.InputBegan:connect(function(R,j)if not j then if R.KeyCode==Enum.KeyCode.N then turn()end end end)
---
if script.Parent.Parent.Parent.IsOn.Value then
	script.Parent.Parent:TweenPosition(
		UDim2.new(0, 0, 0, 0),
		Enum.EasingDirection.InOut,
		Enum.EasingStyle.Quad,
		1,
		true
	)
end

script.Parent.Parent.Parent.IsOn.Changed:connect(function()
	if script.Parent.Parent.Parent.IsOn.Value then
		script.Parent.Parent:TweenPosition(
			UDim2.new(0, 0, 0, 0),
			Enum.EasingDirection.InOut,
			Enum.EasingStyle.Quad,
			1,
			true
		)
	end
end)

function turn()
	if hinge.DesiredAngle == 0 then
		car.Misc.Wiper2.WiperEvent:FireServer(1)
	else
		car.Misc.Wiper2.WiperEvent:FireServer(0)
	end
end

script.Parent.MouseButton1Click:connect(function()
	turn()
end)

local uis = game:GetService("UserInputService")
uis.InputBegan:connect(function(i, f)
	if not f then
		if i.KeyCode == Enum.KeyCode.N then
			turn()
		end
	end
end)
