local Q=script.Parent:WaitForChild("\083\101\101\083\097\119\077\111\116\111\114")local function c(c)local k=Seat1.Occupant local s=Seat2.Occupant local i=Seat1.Throttle local K=Seat2.Throttle if k and s==nil then Q.DesiredAngle=.3 elseif s and k==nil then Q.DesiredAngle=-0.3 end if k and s then if K==0 and i==0 or i==-1 and K==-1 or i==1 and K==1 or i==-1 and K==0 or i==0 and K==-1 then Q.DesiredAngle=0 return end if i==1 and K==0 or i==1 and K==-1 then Q.DesiredAngle=.3 end if K==1 and i==0 or K==1 and i==-1 then Q.DesiredAngle=-0.3 end end end
-- Motor(s)
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
