local W=script.Parent:WaitForChild("\083\101\101\083\097\119\077\111\116\111\114")local function h(h)local U=Seat1.Occupant local B=Seat2.Occupant local g=Seat1.Throttle local T=Seat2.Throttle if U and B==nil then W.DesiredAngle=.3 elseif B and U==nil then W.DesiredAngle=-0.3 end if U and B then if T==0 and g==0 or g==-1 and T==-1 or g==1 and T==1 or g==-1 and T==0 or g==0 and T==-1 then W.DesiredAngle=0 return end if g==1 and T==0 or g==1 and T==-1 then W.DesiredAngle=.3 end if T==1 and g==0 or T==1 and g==-1 then W.DesiredAngle=-0.3 end end end

local SeeSawMotor = script.Parent:WaitForChild("SeeSawMotor")

local function OnSeatsChange(ChangedSeat)
	local Seat1Occupant = Seat1.Occupant
	local Seat2Occupant = Seat2.Occupant
	local Seat1T = Seat1.Throttle
	local Seat2T = Seat2.Throttle
	
	if Seat1Occupant and Seat2Occupant == nil then
		SeeSawMotor.DesiredAngle = 0.3
	elseif Seat2Occupant and Seat1Occupant == nil then
		SeeSawMotor.DesiredAngle = -0.3
	end
	
	if Seat1Occupant and Seat2Occupant then

		-- When both inputs are equal or would seem equal, make it balanced
		if Seat2T == 0 and Seat1T == 0 or Seat1T == -1 and Seat2T == -1 or Seat1T == 1 and Seat2T == 1 or Seat1T == -1 and Seat2T == 0 or Seat1T == 0 and Seat2T == -1 then
			SeeSawMotor.DesiredAngle = 0
			return
		end

		-- Seat1 logic
		if Seat1T == 1 and Seat2T == 0 or Seat1T == 1 and Seat2T == -1 then
			SeeSawMotor.DesiredAngle = 0.3
		end
		
		-- Seat2 logic
		if Seat2T == 1 and Seat1T == 0 or Seat2T == 1 and Seat1T == -1 then
			SeeSawMotor.DesiredAngle = -0.3
		end
	end
end
