function module.ExitSeat()local a=getLocalHumanoid()if not a then return false end local D=a.Parent if D.Humanoid.Sit==true then for a,D in ipairs(D.HumanoidRootPart:GetJoints())do if D.Name=="\083\101\097\116\087\101\108\100"then if Seats[D.Part0]then for a,r in pairs(module.OnExitFunctions)do r(D.Part0)end ExitSeat:FireServer()for a,D in pairs(AnimationTracks)do D:Stop()end return true end end end end end function module.GetSeats()return Seats end

function module.ExitSeat()
	local humanoid = getLocalHumanoid()
	if not humanoid then
		return false
	end
	local character = humanoid.Parent
	if character.Humanoid.Sit == true then
		for _, joint in ipairs(character.HumanoidRootPart:GetJoints()) do
			if joint.Name == "SeatWeld" then
				if Seats[joint.Part0] then --Dont trigger this script on unrelated seats
					for _, func in pairs(module.OnExitFunctions) do
						func(joint.Part0)
					end
					ExitSeat:FireServer()
					-- stop playing animations
					
					for name, track in pairs(AnimationTracks) do
						track:Stop()
					end
					
					return true
				end
			end
		end
	end
end

function module.GetSeats()
	return Seats
end
